/**
 * O-GMIT Notes - PWA Offline-First
 * =================================
 * CSS optimisé pour utilisation mobile à une main
 * Gros boutons, icônes, interactions tactiles
 */

:root {
    --primary: #e94560;
    --primary-dark: #c73e54;
    --secondary: #4facfe;
    --bg-dark: #1a1a2e;
    --bg-card: #16213e;
    --bg-input: #0f3460;
    --text: #e8e8e8;
    --text-muted: #888;
    --success: #00c853;
    --warning: #ffab00;
    --danger: #ff1744;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);

    /* Safe areas for iOS */
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
}

/* =================================
   HEADER
   ================================= */
#app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(12px + var(--safe-top)) 16px 12px;
    background: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

#header-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 6px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
}

.sync-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.sync-status .dot.online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.sync-status .dot.offline {
    background: var(--warning);
}

.sync-status .dot.syncing {
    background: var(--secondary);
    animation: pulse 0.5s infinite;
}

.sync-status .dot.checking {
    background: var(--secondary);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

/* =================================
   BUTTONS
   ================================= */
.btn {
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 14px 24px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:active {
    transform: scale(0.98);
}

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

.btn-large {
    padding: 18px 32px;
    font-size: 1.1rem;
    width: 100%;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: var(--text);
    /* Fix pour mobile - zone tactile minimum 44x44px */
    min-width: 44px;
    min-height: 44px;
    /* Empêcher le blocage des événements tactiles */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255,255,255,0.1);
    /* S'assurer que le bouton est cliquable */
    position: relative;
    z-index: 10;
}

.btn-icon:active {
    background: rgba(255,255,255,0.15);
}

.btn-icon svg {
    width: 24px;
    height: 24px;
    /* Empêcher le SVG de bloquer les événements */
    pointer-events: none;
}

/* =================================
   MAIN CONTENT
   ================================= */
#app-main {
    padding: 16px;
    padding-bottom: calc(100px + var(--safe-bottom));
    max-width: 600px;
    margin: 0 auto;
}

/* =================================
   QUICK FILTERS
   ================================= */
.quick-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-btn {
    flex-shrink: 0;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* =================================
   NOTES LIST
   ================================= */
.notes-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.note-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: transform 0.15s ease;
    border-left: 4px solid var(--warning);
    position: relative;
}

.note-card:active {
    transform: scale(0.98);
}

.note-card.synced {
    border-left-color: var(--success);
}

.note-card.archived {
    border-left-color: var(--text-muted);
    opacity: 0.7;
}

.note-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.note-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.note-meta-tag {
    background: var(--bg-input);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text);
}

.note-card-stars {
    color: var(--warning);
    font-size: 0.9rem;
}

.note-card-content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
    white-space: pre-wrap;
    max-height: 80px;
    overflow: hidden;
    margin-bottom: 10px;
}

.note-card-competitors {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.note-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =================================
   EMPTY STATE
   ================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.empty-state .empty-hint {
    font-size: 0.9rem;
}

/* =================================
   FLOATING ACTION BUTTON (FAB)
   ================================= */
.fab {
    position: fixed;
    bottom: calc(24px + var(--safe-bottom));
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 50;
    color: white;
}

.fab:active {
    transform: scale(0.95);
}

.fab svg {
    width: 28px;
    height: 28px;
}

/* =================================
   NOTE FORM
   ================================= */
#note-form-section {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

#note-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* =================================
   FORM ROW (2 colonnes)
   ================================= */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row-compact {
    gap: 8px;
}

.form-col {
    min-width: 0; /* Évite overflow sur mobile */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =================================
   FORM SELECTS
   ================================= */
.form-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    background: var(--bg-input);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

.form-select option {
    background: var(--bg-card);
    color: var(--text);
    padding: 12px;
}

/* Compact versions */
.form-select-compact {
    padding: 10px 12px;
    font-size: 0.9rem;
    padding-right: 32px;
    background-position: right 10px center;
}

.form-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.form-label .hint {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =================================
   FORM INPUTS (Time, Text)
   ================================= */
.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    background: var(--bg-input);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

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

/* Time input specific styling */
input[type="time"].form-input {
    font-family: inherit;
    -webkit-appearance: none;
}

/* Compact versions */
.form-input-compact {
    padding: 10px 12px;
    font-size: 0.9rem;
}

input[type="time"].form-input::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

/* =================================
   COMPETITOR NUMBER TAGS
   ================================= */
.competitor-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.competitor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
}

.competitor-tags:empty {
    display: none;
}

.competitor-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--secondary);
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    animation: tagPop 0.2s ease;
}

@keyframes tagPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.competitor-tag .tag-number {
    font-weight: 700;
}

.competitor-tag .tag-remove {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.competitor-tag .tag-remove:active {
    background: rgba(255,255,255,0.3);
}

/* =================================
   BUTTON GRID (Operators, Cameras, Tags)
   ================================= */
.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.button-grid.operators {
    grid-template-columns: repeat(2, 1fr);
}

.button-grid.other-operators {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.button-grid.other-operators .operator-btn {
    padding: 10px 6px;
    font-size: 0.8rem;
}

.button-grid.cameras {
    grid-template-columns: repeat(3, 1fr);
}

.button-grid.times {
    grid-template-columns: repeat(3, 1fr);
}

.button-grid.locations {
    grid-template-columns: repeat(2, 1fr);
}

/* Operator Button */
.operator-btn {
    padding: 16px 12px;
    background: var(--bg-card);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.operator-btn:active {
    transform: scale(0.96);
}

.operator-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.operator-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Camera Button */
.camera-btn {
    padding: 12px 8px;
    background: var(--bg-card);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.camera-btn.selected {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

/* =================================
   STAR RATING
   ================================= */
.star-rating {
    display: flex;
    gap: 8px;
}

.star-rating .star {
    width: 48px;
    height: 48px;
    font-size: 2rem;
    background: var(--bg-card);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-rating .star:active {
    transform: scale(0.9);
}

.star-rating .star.active {
    color: var(--warning);
    border-color: var(--warning);
    background: rgba(255, 171, 0, 0.15);
}

/* Compact star rating */
.star-rating-compact {
    gap: 4px;
}

.star-rating-compact .star {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    border-radius: 8px;
}

/* =================================
   TAG BUTTONS (Time, Location)
   ================================= */
.tag-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: var(--bg-card);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-btn:active {
    transform: scale(0.96);
}

.tag-btn .tag-icon {
    font-size: 1.5rem;
}

.tag-btn .tag-text {
    font-weight: 500;
}

.tag-btn.selected {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.tag-btn.multi.selected {
    background: rgba(79, 172, 254, 0.2);
    border-color: var(--secondary);
}

/* =================================
   TEXTAREA
   ================================= */
#note-content {
    background: var(--bg-input);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px;
    font-size: 1rem;
    color: var(--text);
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
    font-family: inherit;
}

#note-content:focus {
    outline: none;
    border-color: var(--primary);
}

#note-content::placeholder {
    color: var(--text-muted);
}

/* =================================
   GPS STATUS
   ================================= */
.gps-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.gps-status.active {
    color: var(--success);
}

.gps-status.error {
    color: var(--danger);
}

/* =================================
   FORM ACTIONS
   ================================= */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-bottom: 20px;
}

.form-actions .btn-danger {
    flex: 0 0 auto;
    padding: 18px;
}

.form-actions .btn-primary {
    flex: 1;
}

/* =================================
   TOAST NOTIFICATIONS
   ================================= */
#toast-container {
    position: fixed;
    bottom: calc(100px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200;
    width: calc(100% - 32px);
    max-width: 400px;
}

.toast {
    background: var(--bg-card);
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    animation: toastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }

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

/* =================================
   iOS INSTALL PROMPT
   ================================= */
.ios-prompt {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 300;
    padding: 20px;
}

.ios-prompt-content {
    background: var(--bg-card);
    border-radius: 20px 20px 0 0;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.ios-prompt-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.ios-prompt-content ol {
    text-align: left;
    margin: 20px 0;
    padding-left: 24px;
}

.ios-prompt-content li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.ios-prompt-content .btn {
    width: 100%;
    margin-top: 16px;
}

/* =================================
   MODAL (Sync)
   ================================= */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 250;
    padding: 24px;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.modal-content h2 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

#sync-result-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

#sync-result-message {
    margin-bottom: 24px;
    line-height: 1.5;
}

/* =================================
   UTILITIES
   ================================= */
.hidden {
    display: none !important;
}

/* Disable body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Safe area padding for form */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .form-actions {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* =================================
   RESPONSIVE
   ================================= */
@media (max-width: 380px) {
    .button-grid.operators {
        grid-template-columns: 1fr 1fr;
    }

    .button-grid.other-operators {
        grid-template-columns: repeat(4, 1fr);
    }

    .star-rating .star {
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }
}

/* Large screens */
@media (min-width: 768px) {
    .button-grid.locations {
        grid-template-columns: repeat(5, 1fr);
    }

    .button-grid.times {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* =================================
   iOS WARNING BANNER
   ================================= */
.ios-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(8px + var(--safe-top)) 16px 12px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    position: relative;
    z-index: 101;
}

.ios-warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ios-warning-text {
    flex: 1;
}

.ios-warning-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.ios-warning-text p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.95;
}

.ios-warning-dismiss {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.ios-warning-dismiss:active {
    background: rgba(255,255,255,0.3);
}

/* Adjust header when banner is visible */
.ios-warning:not(.hidden) + #app-header {
    padding-top: 12px;
}

/* =================================
   EXPORT SECTION
   ================================= */
.export-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary {
    background: var(--bg-card);
    border: 2px solid rgba(255,255,255,0.15);
    color: var(--text);
}

.btn-secondary:active {
    background: var(--bg-input);
}

.btn-export {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
}

.export-icon {
    font-size: 1.2rem;
}

/* =================================
   EXPORT MODAL
   ================================= */
.export-modal-content {
    max-width: 400px;
}

.export-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.export-stats {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.export-stats-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.export-stats-row:last-child {
    border-bottom: none;
}

.export-stats-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.export-stats-value {
    font-weight: 600;
    color: var(--text);
}

.export-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.export-buttons .btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
}

.export-buttons .btn span:first-child {
    font-size: 1.5rem;
}

.export-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 0 10px;
}

/* =================================
   iOS INSTALL PROMPT - ENHANCED
   ================================= */
.ios-prompt-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.ios-prompt-warning {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 16px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.ios-prompt-tips {
    background: rgba(79, 172, 254, 0.15);
    border: 1px solid rgba(79, 172, 254, 0.3);
    color: var(--secondary);
    padding: 12px 16px;
    border-radius: 10px;
    margin: 16px 0;
    font-size: 0.85rem;
}

.ios-share-icon {
    display: inline-block;
    background: var(--secondary);
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* =================================
   CONFIGURATION MODAL
   ================================= */
.config-modal-content {
    max-width: 400px;
}

.config-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.config-group {
    margin-bottom: 20px;
    text-align: left;
}

.config-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.config-group input,
.config-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    background: var(--bg-input);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.config-group input:focus,
.config-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

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

.config-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.config-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid var(--success);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.config-notice .notice-icon {
    font-size: 1.2rem;
}

.config-notice .notice-text {
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 500;
}

.config-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.config-status-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.config-status-text {
    font-size: 0.9rem;
    color: var(--text);
}

.config-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.config-actions .btn {
    flex: 1;
    padding: 14px 20px;
}

.config-actions .btn.hidden {
    display: none;
}
