* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --navbar-bg: white;
    --text-primary: #333;
    --text-secondary: #666;
    --text-tertiary: #888;
    --text-light: #aaa;
    --box-bg: white;
    --border-color: #e0e0e0;
    --input-border: #e0e0e0;
    --input-focus: #667eea;
    --hover-bg: #f5f5f5;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(102, 126, 234, 0.4);
}
var(--navbar-bg);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3sry: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-tertiary: #888;
    --text-light: #666;
    --box-bg: #2a2a3e;
    --border-color: #3a3a4e;
    --input-border: #3a3a4e;
    --input-focus: #667eea;
    --hover-bg: #3a3a4e;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(102, 126, 234, 0.6);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-primary);
    transition: background 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-toggle:hovar(--box-bg);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 50px var(--shadow);
    transition: background 0.3s;
}

.auth-box h1.logo {
    text-align: center;
    margin-bottom: 10px;
    font-size: 36px;
}

.auth-box h2 {
    text-align: center;
    color: var(--text-secondary) white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
}

.auth-box h1.logo {
    text-align: center;
    margin-bottom: 10px;
    font-size: 36px;
}var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s, background 0.3s, color 0.3s;
    background: var(--box-bg);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--input-focus)
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Alerts */
.alert {
    padding: 12px;
    border-radius: 10px;
    margin-var(--text-secondary)om: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}
var(--box-bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: background 0.3s;
}

.post-box h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 18px;
}

.post-box textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    font-size: 14px;
    min-height: 100px;
    margin-bottom: 15px;
    font-family: inherit;
    resize: vertical;
    background: var(--box-bg);
    color: var(--text-primary);
    transition: all 0.3s;
}

.post-box textarea:focus {
    outline: none;
    border-color: var(--input-focus)
    color: #333;
    font-size: 18px;
}

.post-box textarea {
    width: 100%;
    padding: 12pvar(--box-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: background 0.3s
    min-height: 100px;
    margin-bottom: 15px;
    font-family: inherit;
    resize: vertical;
}

.post-box textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Posts */
.posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.post-author {
    display: flex;
    gap: 12px;
    align-items: center;
}var(--text-primary);
    margin-bottom: 2px;
}

.username {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-right: 10px;
}

.post-date {
    color: var(--text-light);
    font-size: 12px;
}

.post-content {
    margin-bottom: 15px;
    line-height: 1.6;
}

.post-content p {
    color: var(--text-secondary)
.post-author h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 2px;
}

.username {var(--border-color);
}

.btn-like {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-like:hover {
    background: var(--hover-bg)
.post-actions {
    display: flex;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.btn-like {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 8pxvar(--box-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px var(--shadow);
    display: flex;
    gap: 25px;
    align-items: start;
    transition: background 0.3s;
}

.profile-info h2 {
    margin-bottom: 5px;
}

.bio {
    color: var(--text-secondary)

/* Profile */
.profile-container {
    max-width: 900px;
    margin: 20px auto;
}

.profile-header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 25px;
    align-items: start;
}

.profile-info h2 {
    margin-bottom: 5px;
}
var(--text-tertiary);
    font-size: 14px;
}

.profile-posts {
    background: var(--box-bg);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: background 0.3s;
}

.profile-posts h3 {
    margin-bottom: 20px;
    color: var(--text-primary)ex;
    flex-direction: column;
    text-align: center;
}

.stat strong {
    font-size: 24px;
    color: #667eea;var(--border-color);
    font-size: 13px;
    color: var(--text-tertiary);
}

.post-likes {
    color: #e74c3c;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* Admin Panel */
.admin-container {
    max-width: 1200px;
    margin: 20px auto;
}

.admin-container h2 {
    color: var(--text-primary);
    margin-bottom: 30px;
    font-size: 28px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--box-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform 0.3s, background 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 16px;
}

.admin-section {
    background: var(--box-bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: background 0.3s;
}

.admin-section h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 22px;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--hover-bg);
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-secondary);
}

.admin-table tbody tr:hover {
    background: var(--hover-bg);
}

.post-preview {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-delete {
    color: #e74c3c;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-delete:hover {
    background: #fee 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-posts h3 {
    margin-bottom: 20px;
    color: #333;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #888;
}

.post-likes {
    color: #e74c3c;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
}
