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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    color: #212529;
    line-height: 1.6;
}

/* Header */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

.nav-link.active {
    color: #007bff;
    background-color: #e3f2fd;
    font-weight: 600;
}

.version-badge {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.hero-section {
    text-align: center;
    margin-bottom: 80px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-weight: 500;
}

.feature-icon {
    width: 16px;
    height: 16px;
    fill: #28a745;
}

/* Action Cards */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.action-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.action-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.action-card p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: #ffffff;
    margin: 2% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 30px 30px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.modal-body {
    padding: 0 30px 30px;
}

/* Terms and Privacy Policy Modal Specific Styles */
.terms-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
}

.terms-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e9ecef;
}

.terms-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.terms-content p:first-child {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid #007bff;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #6c757d;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close:hover {
    background: #f8f9fa;
    color: #495057;
}

/* Forms */
.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background: #ffffff;
}

.form-control:focus {
    outline: 0;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 4px;
}

.form-text.warning {
    color: #dc3545;
    font-weight: 500;
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-top: 2px;
    transform: scale(1.1);
}

.checkbox-label {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.4;
}

.checkbox-label a {
    color: #007bff;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    color: #ffffff;
    background-color: #007bff;
    border-color: #007bff;
    width: 100%;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    color: #6c757d;
    background-color: #ffffff;
    border-color: #6c757d;
}

.btn-secondary:hover {
    color: #545b62;
    background-color: #f8f9fa;
    border-color: #545b62;
}

/* Status Page */
.dashboard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.status-header {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

.status-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.status-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.user-info-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.info-item:hover {
    background: #e9ecef;
}

.info-label {
    font-weight: 600;
    color: #495057;
    min-width: 140px;
    font-size: 0.95rem;
}

.info-value {
    color: #212529;
    font-weight: 500;
    text-align: right;
    flex: 1;
    font-family: 'SF Mono', Monaco, 'Consolas', monospace;
    font-size: 0.9rem;
}

/* Status Display */
.status-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

.status-card.active {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%);
}

.status-card.inactive {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.02) 100%);
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.status-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.status-active .status-title {
    color: #28a745;
}

.status-inactive .status-title {
    color: #dc3545;
}

.status-description {
    color: #6c757d;
    font-size: 1rem;
}

/* Code Submission */
.code-submission-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-left: 4px solid #ffc107;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.code-submission-card h3 {
    color: #495057;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.code-submission-card p {
    color: #6c757d;
    margin-bottom: 25px;
}

/* Messages */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 500;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Admin Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-login-card {
    max-width: 400px;
    margin: 100px auto;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 40px;
}

.admin-header {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.admin-section {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.admin-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-top: 1px solid #e9ecef;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.logout-btn {
    color: #dc3545;
    background: #ffffff;
    border: 1px solid #dc3545;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.logout-btn:hover {
    color: #ffffff;
    background: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .info-label {
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .info-value {
        text-align: left;
        font-size: 0.95rem;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}
