/* ==================== APPLE-INSPIRED DESIGN ==================== */

:root {
    /* Apple System Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-tertiary: #ffffff;
    
    /* Apple Text Colors */
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-muted: #86868b;
    --text-tertiary: #a1a1a6;
    
    /* Apple Border Colors */
    --border-color: #d2d2d7;
    --border-light: #e5e5ea;
    --border-separator: rgba(60, 60, 67, 0.12);
    
    /* Apple Accent Colors */
    --accent-primary: #007aff;
    --accent-primary-dark: #0051d5;
    --accent-green: #34c759;
    --accent-green-dark: #30d158;
    --danger: #ff3b30;
    
    /* Apple Shadows - Subtle and flat */
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
    
    /* Apple Border Radius */
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.47059;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
}

/* ==================== APP LAYOUT ==================== */

.app {
    min-height: 100vh;
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-secondary);
    position: relative;
    padding-bottom: 90px;
    padding-top: 8px;
}

.app-content {
    padding: 0 20px 24px;
    margin-top: 8px;
}

/* ==================== TOP HEADER ==================== */

.top-header {
    background: var(--bg-secondary);
    padding: 35px 0 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 16px;
}

.top-header h1 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-header h1 .icon,
.top-header h1 i {
    font-size: 28px;
    color: var(--accent-primary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-header-btn {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 17px;
}

/* ==================== PAGE HEADER ==================== */

.page-header {
    background: #ffffff;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-bottom: 0.5px solid var(--border-separator);
}

.page-header-back {
    position: absolute;
    left: 20px;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-header-back::before {
    content: '←';
    font-size: 16px;
    line-height: 1;
    margin-right: 2px;
}

.page-header-title {
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.page-header-title .icon,
.page-header-title i {
    display: none;
}

.page-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

/* ==================== BOTTOM NAVIGATION ==================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-top: 0.5px solid var(--border-separator);
    padding: 8px 0 max(28px, env(safe-area-inset-bottom));
    z-index: 1000;
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s;
}

.bottom-nav-item.active {
    color: var(--accent-primary);
}

.bottom-nav-icon {
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.bottom-nav-icon i {
    font-size: 24px;
    display: block;
}

/* ==================== CARDS ==================== */

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    border: 0.5px solid var(--border-separator);
    box-shadow: none;
}

.card-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.5px solid var(--border-separator);
}

.card-title {
    font-size: 17px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* ==================== LIST GROUPS ==================== */

.list-group {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.list-group-title {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 8px 20px;
    margin-top: 24px;
}

.list-group-title:first-child {
    margin-top: 0;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-card);
    text-decoration: none;
    color: inherit;
    border-bottom: 0.5px solid var(--border-separator);
    transition: background-color 0.2s ease;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:active {
    background-color: var(--bg-secondary);
}

.list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.list-item-icon i {
    display: block;
    font-size: 20px;
}

.list-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    margin-right: 16px;
    flex-shrink: 0;
}

.list-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 2px;
}

.list-item-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-meta {
    text-align: right;
    margin-left: 12px;
}

.list-item-time {
    font-size: 15px;
    color: var(--text-muted);
}

.list-item-chevron {
    color: var(--text-muted);
    font-size: 20px;
    margin-left: 8px;
}

/* ==================== DASHBOARD GRID ==================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.dashboard-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, background-color 0.2s ease;
    border: 0.5px solid var(--border-separator);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashboard-item:active {
    transform: scale(0.96);
    background-color: var(--bg-secondary);
}

.dashboard-item-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 122, 255, 0.05) 100%);
    color: var(--accent-primary);
    transition: transform 0.2s ease, background 0.2s ease;
    position: relative;
}

.dashboard-item-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.15) 0%, rgba(0, 122, 255, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dashboard-item-icon i {
    display: block;
    font-size: 32px;
    position: relative;
    z-index: 1;
}

.dashboard-item:hover .dashboard-item-icon::before {
    opacity: 1;
}

.dashboard-item:active .dashboard-item-icon {
    transform: scale(0.95);
}

.dashboard-item-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* ==================== BUTTONS ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 17px;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    font-weight: 600;
    box-shadow: none;
    border: none;
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    background: var(--accent-primary-dark);
}

.btn-primary:active {
    background: var(--accent-primary-dark);
    opacity: 0.85;
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

/* ==================== FORMS ==================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    border: none;
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
    background: var(--bg-card);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* ==================== CHAT / MESSAGES ==================== */

.chat-container {
    padding: 16px 20px;
    min-height: calc(100vh - 180px);
}

.message {
    display: flex;
    margin-bottom: 8px;
}

.message.incoming {
    justify-content: flex-start;
}

.message.outgoing {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 17px;
    line-height: 1.35;
}

.message.incoming .message-bubble {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message.outgoing .message-bubble {
    background: var(--accent-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-attachment {
    max-width: 220px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 6px;
}

.message-attachment img,
.message-attachment video {
    width: 100%;
    display: block;
}

.message-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    opacity: 0.8;
}

.message.outgoing .message-time {
    color: rgba(255,255,255,0.7);
}

.chat-input-area {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-top: 0.5px solid var(--border-separator);
    padding: 12px 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    font-size: 17px;
    outline: none;
    color: var(--text-primary);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.chat-send-btn:active {
    opacity: 0.7;
}

/* ==================== GALLERY ==================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: opacity 0.2s;
}

.gallery-item:active {
    opacity: 0.7;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.gallery-item-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    pointer-events: none;
}

/* Fullscreen Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.fullscreen-modal.active {
    display: flex;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.2s;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.fullscreen-close:active {
    background: rgba(255, 255, 255, 0.4);
}

.fullscreen-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fullscreen-content img,
.fullscreen-content video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.fullscreen-content video {
    width: 100%;
    height: auto;
    max-height: 90vh;
}

/* ==================== NOTES ==================== */

.notes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 20px 20px;
}

.note-card {
    background: #ffffff;
    border: 0.5px solid var(--border-separator);
    border-radius: var(--radius);
    padding: 16px;
    min-height: 140px;
}

.note-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.note-content {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==================== CONTACTS ==================== */

.contact-section {
    padding: 0 20px;
}

/* ==================== LOGIN PAGE ==================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 48px 32px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.login-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--accent-primary);
}

.login-logo i {
    display: block;
    font-size: 36px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.login-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 15px;
    margin-bottom: 20px;
}

/* ==================== SPLASH PAGE ==================== */

.splash-page {
    min-height: 100vh;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
}

.splash-hero {
    text-align: center;
    padding: 120px 24px 60px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.splash-logo {
    width: 96px;
    height: 96px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.15) 0%, rgba(0, 122, 255, 0.08) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--accent-primary);
    box-shadow: none;
    border: 0.5px solid var(--border-separator);
}

.splash-logo i {
    display: inline-block;
    font-size: 48px;
    line-height: 1;
}

.splash-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.8px;
    color: var(--text-primary);
    line-height: 1.1;
}

.splash-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 24px;
    line-height: 1.5;
    font-weight: 400;
}

.splash-user-count {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 auto 32px;
    font-weight: 500;
    letter-spacing: -0.1px;
}

.splash-features {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 24px 80px;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    box-shadow: none;
    border: 0.5px solid var(--border-separator);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.feature-item:active {
    transform: scale(0.98);
    background-color: var(--bg-secondary);
}

.feature-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 122, 255, 0.05) 100%);
    border-radius: 12px;
    color: var(--accent-primary);
}

.feature-icon i {
    display: inline-block;
    font-size: 24px;
    line-height: 1;
}

.feature-text {
    flex: 1;
    text-align: left;
}

.feature-text h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.feature-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 400;
}

/* ==================== SPLASH BADGES ==================== */

.splash-badges {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 24px 40px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 0.5px solid var(--border-separator);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.security-badge i {
    font-size: 14px;
    color: var(--accent-green);
}

.security-badge:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-1px);
}

/* ==================== SPLASH FOOTER ==================== */

.splash-footer {
    max-width: 500px;
    margin: 0 auto;
    padding: 32px 24px 40px;
    width: 100%;
    text-align: center;
    border-top: 0.5px solid var(--border-separator);
}

.splash-availability {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.splash-powered {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 20px;
    font-weight: 400;
}

.play-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 0.5px solid var(--border-separator);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.play-store-btn i {
    font-size: 24px;
    color: var(--accent-green);
}

.play-store-btn:hover {
    transform: translateY(-2px);
    background-color: var(--bg-secondary);
}

/* ==================== MODALS ==================== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2000;
    align-items: flex-end;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 0.5px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 17px;
    font-weight: 600;
}

.modal-close {
    background: var(--bg-secondary);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 0.5px solid var(--border-light);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ==================== ADMIN LAYOUT ==================== */

.admin-page {
    display: flex;
    min-height: 100vh;
    background: var(--bg-secondary);
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 0.5px solid var(--border-light);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 32px;
    padding: 0 8px;
    color: var(--text-primary);
}

.admin-sidebar-logo .icon,
.admin-sidebar-logo i {
    font-size: 24px;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav-item {
    padding: 12px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-nav-item .icon,
.admin-nav-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-nav-item:hover {
    background: var(--bg-secondary);
}

.admin-nav-item.active {
    background: var(--accent-primary);
    color: white;
}

.admin-main {
    flex: 1;
    padding: 32px;
    max-width: 1000px;
}

.admin-header {
    margin-bottom: 32px;
}

.admin-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ==================== TABLES ==================== */

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 0.5px solid var(--border-light);
}

.data-table th {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr:hover {
    background: var(--bg-secondary);
}

/* ==================== BADGES ==================== */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* ==================== TABS ==================== */

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 0.5px solid var(--border-separator);
}

.tab-btn:hover {
    background: var(--bg-secondary);
}

.tab-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* ==================== EMPTY STATE ==================== */

.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.3;
    color: var(--text-muted);
}

.empty-state-icon i {
    font-size: 56px;
    display: block;
}

/* ==================== PROTECTED INDICATOR ==================== */

.protected-indicator {
    width: calc(100% - 40px);
    margin: 0 20px 24px 20px;
    background: rgba(52, 199, 89, 0.08);
    border: 2px solid var(--accent-green);
    border-radius: 16px;
    color: var(--accent-green);
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.2px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(52, 199, 89, 0.1);
}

.rec-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ==================== PROTECTED CONTENT ==================== */

.protected-content {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* ==================== ICON FIXES ==================== */

/* Don't interfere with Font Awesome - let it handle its own styling */
/* Only ensure icons are visible and properly positioned */
.splash-logo i,
.feature-icon i,
.dashboard-item-icon i,
.bottom-nav-icon i,
.list-item-icon i,
.page-header-title i,
.top-header h1 i,
.admin-sidebar-logo i,
.admin-nav-item i {
    display: inline-block;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
}

/* Ensure icon containers properly display their children */
.splash-logo,
.feature-icon,
.dashboard-item-icon,
.bottom-nav-icon,
.list-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo i,
.feature-icon i {
    font-size: inherit;
    line-height: 1;
}

/* ==================== UTILITIES ==================== */

.mb-4 { margin-bottom: 20px; }
.mt-4 { margin-top: 20px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-sm { font-size: 13px; }

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .admin-page {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 16px;
    }
    
    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .admin-main {
        padding: 20px;
    }
}
