/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #0056b3;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.username {
    color: #6c757d;
    font-weight: 500;
}

.nav-button {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-button {
    background-color: #007bff;
    color: white;
}

.login-button:hover {
    background-color: #0056b3;
}

.logout-button {
    background-color: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.logout-button:hover {
    background-color: #c82333;
}

.signup-button {
    background-color: #28a745;
    color: white;
}

.signup-button:hover {
    background-color: #218838;
}

/* ===== MAIN CONTENT ===== */
.main {
    flex: 1;
    padding: 2rem 0;
}

/* ===== MESSAGES ===== */
.messages {
    margin-bottom: 2rem;
}

.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.message-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* ===== BUTTONS ===== */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.button-primary {
    background-color: #007bff;
    color: white;
}

.button-primary:hover {
    background-color: #0056b3;
    color: white;
}

.button-secondary {
    background-color: #6c757d;
    color: white;
}

.button-secondary:hover {
    background-color: #5a6268;
    color: white;
}

.button-disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.button-full {
    width: 100%;
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.welcome-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.welcome-description {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.welcome-actions {
    margin-top: 2rem;
}

/* ===== FEATURES/SERVICES GRID ===== */
.features-section, .services-section {
    margin-bottom: 3rem;
}

.features-section h2, .services-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.features-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card, .service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover, .service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.feature-card h3, .service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p, .service-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}



.coming-soon {
    opacity: 0.7;
}

.coming-soon-badge {
    background-color: #ffc107;
    color: #856404;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.login-required {
    color: #dc3545;
    font-style: italic;
}

/* ===== DASHBOARD ===== */
.dashboard-section {
    margin-bottom: 3rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.system-infomation {
    padding-left: 2rem;
    font-size: 1.2rem;
    color: #6c757d;
}

.dashboard-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.stat-card p {
    font-size: 1rem;
    color: #333;
}
.stat-label { font-weight: bold; }

/* ===== SERVICE STATUS ===== */

.service-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-available {
    background-color: #d4edda;
    color: #155724;
}

.status-coming-soon {
    background-color: #fff3cd;
    color: #856404;
}

/* ===== ACCOUNT SECTION ===== */
.account-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.account-section h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.account-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== SERVICE PAGE ===== */
.xx_service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.service-header {
    margin-bottom: 1rem;
    padding: 0rem 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-content {
    margin-bottom: 3rem;
}

.demo-section, .placeholder-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    text-align: center;
}

.placeholder-box {
    text-align: center;
}

.placeholder-content {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.placeholder-item {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 4px;
    border: 2px dashed #dee2e6;
    min-width: 150px;
}

.service-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-info {
    text-align: right;
    color: #6c757d;
    font-size: 0.875rem;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.copyright {
    margin: 0;
    color: #adb5bd;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .account-actions {
        flex-direction: column;
    }
    
    .service-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .service-info {
        text-align: center;
    }
    
    .placeholder-content {
        flex-direction: column;
        align-items: center;
    }
}