:root {
    --primary-color: #7B2D3E;
    --primary-dark: #5A1E2E;
    --primary-light: #9D4A5B;
    --secondary-color: #A85C6B;
    --accent-color: #D4AF37;
    --text-dark: #2D3748;
    --bg-light: #F8F9FA;
    --card-shadow: rgba(123, 45, 62, 0.15);
    --gradient-primary: linear-gradient(135deg, #7B2D3E 0%, #5A1E2E 100%);
    --gradient-light: linear-gradient(135deg, #9D4A5B 0%, #7B2D3E 100%);
}

body {
    background: var(--gradient-primary);
    min-height: 100vh;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', -apple-system, sans-serif;
}

/* Navbar */
.navbar {
    background: rgba(123, 45, 62, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
    color: white !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: 8px;
    margin: 0 3px;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
}

/* Main Content */
.main-content {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 45px var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.5s ease-out;
    margin-bottom: 30px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
    padding: 18px 20px;
    border: none;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(123, 45, 62, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 45, 62, 0.4);
}

/* Stat Cards */
.stat-card {
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(123, 45, 62, 0.3);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(123, 45, 62, 0.4);
}

.stat-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 8px 0;
}

/* Tables */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.table th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    padding: 14px 12px;
    white-space: nowrap;
    font-size: 0.9rem;
}

.table td {
    padding: 12px;
    vertical-align: middle;
    font-size: 0.9rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(123, 45, 62, 0.05);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    animation: shimmer 15s infinite linear;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.hero-section .subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.hero-section .conference-info {
    position: relative;
    z-index: 1;
}

/* Agenda Timeline */
.agenda-day {
    margin-bottom: 40px;
}

.agenda-day-header {
    background: var(--gradient-primary);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.agenda-session {
    border-left: 4px solid var(--primary-color);
    padding: 20px 25px;
    margin-bottom: 20px;
    background: white;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.agenda-session:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-left-color: var(--accent-color);
}

.agenda-session-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.agenda-session-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 10px;
}

.agenda-moderators {
    font-size: 0.88rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    padding: 6px 12px;
    background: rgba(123, 45, 62, 0.05);
    border-radius: 8px;
    display: inline-block;
}

.agenda-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

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

.agenda-time {
    min-width: 110px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    padding-top: 2px;
}

.agenda-speaker {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 8px;
}

.agenda-topic {
    color: #555;
    font-style: italic;
    font-size: 0.92rem;
}

.agenda-break {
    background: rgba(212, 175, 55, 0.08);
    border-left-color: var(--accent-color);
}

.agenda-break .agenda-session-title {
    color: var(--accent-color);
}

/* Badge styles */
.badge-role {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.badge-speaker { background: rgba(123, 45, 62, 0.1); color: var(--primary-color); }
.badge-moderator { background: rgba(212, 175, 55, 0.15); color: #8B7000; }
.badge-discussant { background: rgba(40, 167, 69, 0.1); color: #28a745; }
.badge-opening { background: rgba(0, 123, 255, 0.1); color: #007bff; }
.badge-keynote { background: rgba(156, 39, 176, 0.1); color: #7B1FA2; }

/* Login Page */
.login-container {
    max-width: 420px;
    margin: 80px auto;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.login-card h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 30px;
}

/* Search & Filter */
.search-bar {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.search-bar .form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.search-bar .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(123, 45, 62, 0.15);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Expense category icons */
.expense-hotel { color: #6f42c1; }
.expense-food { color: #fd7e14; }
.expense-transport { color: #20c997; }
.expense-venue { color: #0dcaf0; }
.expense-other { color: #6c757d; }

/* Conference info cards on public page */
.info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h5 {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 20px;
        margin: 10px;
        border-radius: 15px;
    }
    .hero-section {
        padding: 35px 20px;
    }
    .hero-section h1 {
        font-size: 1.6rem;
    }
    .agenda-time {
        min-width: 80px;
        font-size: 0.8rem;
    }
    .table-responsive {
        font-size: 0.85rem;
    }
}

/* Editable field highlight */
.editable-field {
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 4px;
    padding: 2px 4px;
}

.editable-field:hover {
    background-color: rgba(123, 45, 62, 0.06);
}

/* Modal improvements */
.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Notification area */
.announcement-card {
    border-left: 4px solid var(--accent-color);
    background: rgba(212, 175, 55, 0.05);
}

/* Print styles */
@media print {
    .navbar, .site-footer, .btn, .search-bar { display: none !important; }
    .main-content { box-shadow: none; margin: 0; padding: 20px; }
    body { background: white; }
}
