/* Settings Section Styles */
#settings-section {
    background: #F1F1F1;
}

#settings-section main {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.settings-container {
    width: 100%;
}

.settings-header {
    margin-bottom: 30px;
}

.settings-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-family: 'Inter', sans-serif;
}

.settings-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}

.settings-card-header i {
    font-size: 24px;
    color: #667eea;
}

.settings-card-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.settings-card-body {
    padding: 24px;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.field-description {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.input-with-unit input {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.input-with-unit input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.unit-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    min-width: 60px;
}

.time-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preset-btn,
.preset-btn-refresh {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #667eea;
    background: #f0f3ff;
    border: 1px solid #667eea;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.preset-btn:hover,
.preset-btn-refresh:hover {
    background: #667eea;
    color: #fff;
}

.current-settings-info {
    margin-top: 32px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.current-settings-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    font-family: 'Inter', sans-serif;
}

.info-grid {
    display: grid;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
}

.info-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.cancel-btn,
.submit-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.cancel-btn {
    color: #666;
    background: #f3f4f6;
}

.cancel-btn:hover {
    background: #e5e7eb;
}

.submit-btn {
    color: #fff;
    background: #667eea;
}

.submit-btn:hover {
    background: #5568d3;
}

.submit-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* Loading and message states */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    padding: 16px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #fecaca;
}

.success-message {
    padding: 16px;
    background: #f0fdf4;
    color: #16a34a;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #bbf7d0;
}

.access-denied {
    text-align: center;
    padding: 60px 20px;
}

.access-denied i {
    font-size: 64px;
    color: #dc2626;
    margin-bottom: 20px;
}

.access-denied h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.access-denied p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    #settings-section main {
        padding: 20px;
    }

    .settings-header h1 {
        font-size: 24px;
    }

    .settings-subtitle {
        font-size: 14px;
    }

    .settings-card-header {
        padding: 16px;
    }

    .settings-card-header h2 {
        font-size: 18px;
    }

    .settings-card-body {
        padding: 16px;
    }

    .time-presets {
        flex-direction: column;
    }

    .preset-btn,
    .preset-btn-refresh {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .cancel-btn,
    .submit-btn {
        width: 100%;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .input-with-unit {
        flex-direction: column;
        align-items: stretch;
    }

    .unit-label {
        text-align: left;
    }
}






