* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000000;
    background-image: url('/static/images/background.jpg'), url('/static/images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    border-bottom: 2px solid #ffffff;
    position: relative;
    z-index: 10;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 28px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: lowercase;
    font-family: 'Courier New', monospace;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
}

.nav-links a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Flash messages */
.flash-messages {
    margin-bottom: 20px;
}

.flash {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    border: 2px solid;
}

.flash-success {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #ffffff;
}

.flash-error {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border-color: #ffffff;
}

.flash-info {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #ffffff;
}

/* Auth pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.auth-box {
    background: rgba(0, 0, 0, 0.85);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
    border: 2px solid #ffffff;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
}

.auth-box h2 {
    margin-bottom: 10px;
    color: #ffffff;
}

.auth-info {
    color: #cccccc;
    margin-bottom: 30px;
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-links {
    margin-top: 15px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #ffffff;
}

.auth-links p {
    color: #cccccc;
    font-size: 14px;
}

.auth-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
}

.auth-links a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Forms */
.form-container {
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.form-box {
    background: rgba(0, 0, 0, 0.85);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
    border: 2px solid #ffffff;
    width: 100%;
    max-width: 600px;
    backdrop-filter: blur(10px);
}

.form-box h2 {
    margin-bottom: 10px;
    color: #ffffff;
}

.form-info {
    color: #cccccc;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #ffffff;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="file"] {
    padding: 12px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    transition: all 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.form-group input[type="file"] {
    color: #ffffff;
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 10px;
}

.form-group small {
    color: #cccccc;
    font-size: 12px;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    background: transparent;
    color: #ffffff;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.btn-primary:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-danger {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-danger:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-warning {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-warning:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

/* Posts */
.posts-container {
    background: rgba(0, 0, 0, 0.85);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
    border: 2px solid #ffffff;
    backdrop-filter: blur(10px);
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ffffff;
}

.posts-header h2 {
    color: #ffffff;
}

.post-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.limit-reached {
    color: #ffffff;
    font-weight: 600;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffffff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.post-header h3,
.post-header h4 {
    color: #ffffff;
    flex: 1;
}

.post-date {
    color: #cccccc;
    font-size: 14px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #cccccc;
    font-size: 14px;
}

.post-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #cccccc;
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Post view */
.post-view-container {
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.post-view {
    background: rgba(0, 0, 0, 0.85);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
    border: 2px solid #ffffff;
    width: 100%;
    max-width: 1000px;
    backdrop-filter: blur(10px);
}

.post-view .post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ffffff;
}

.post-view .post-header h2 {
    color: #ffffff;
    margin-bottom: 10px;
}

.files-section {
    margin: 30px 0;
}

.files-section h3 {
    margin-bottom: 20px;
    color: #ffffff;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.file-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ffffff;
}

.file-preview {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #ffffff;
}

.file-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.file-info {
    padding: 15px;
}

.file-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
    word-break: break-word;
}

.file-size {
    color: #cccccc;
    font-size: 12px;
    margin-bottom: 10px;
}

/* Admin panel */
.admin-container {
    background: rgba(0, 0, 0, 0.85);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
    border: 2px solid #ffffff;
    backdrop-filter: blur(10px);
}

.admin-container h2 {
    margin-bottom: 30px;
    color: #ffffff;
}

.admin-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.admin-section h3 {
    margin-bottom: 20px;
    color: #ffffff;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffffff;
}

.banned-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.banned-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.banned-item span {
    color: #ffffff;
}

.ban-date {
    color: #cccccc;
    font-size: 14px;
}

/* Disk monitor */
.disk-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffffff;
}

.disk-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.disk-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.disk-label {
    color: #cccccc;
    font-weight: 500;
}

.disk-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
}

.disk-progress {
    margin-top: 15px;
}

.disk-progress-bar {
    width: 100%;
    height: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ffffff;
}

.disk-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, #cccccc 100%);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-weight: 600;
    font-size: 12px;
}

/* Banned page */
.banned-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.banned-box {
    background: rgba(0, 0, 0, 0.85);
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
    border: 2px solid #ffffff;
    text-align: center;
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(10px);
}

.banned-title {
    font-size: 32px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.banned-message {
    font-size: 18px;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 15px;
    }

    .posts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .files-grid {
        grid-template-columns: 1fr;
    }

    .post-actions {
        flex-direction: column;
    }

    .banned-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    body {
        background-attachment: scroll;
    }
}
