/* ===================================
   PAGE HEADER
   =================================== */

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

.page-header h3 {
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

/* ===================================
   USER TABLE ENHANCEMENTS
   =================================== */

.user-id-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
    border: 2px solid #90caf9;
}

.text-muted {
    color: #6c757d;
    font-size: 0.85rem;
}

.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.8rem;
    color: #495057;
}

.role-text {
    display: inline-block;
    padding: 2px 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    border: 1px solid #dee2e6;
}

/* ===================================
   PERMISSIONS DES ONGLETS
   =================================== */

.allowed-tabs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #90caf9;
    transition: all 0.2s ease;
}

.tab-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.2);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.checkbox-label:hover {
    background: #e9ecef;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.info-message {
    padding: 10px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #1565c0;
    margin-bottom: 10px;
}

/* Radio group styles */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s;
}

.radio-label:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.radio-label input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: #007bff;
    background-color: #e7f3ff;
    font-weight: 600;
}

/* Notification type badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

.badge-sms {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.badge-email {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.badge-level-1 {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(23, 162, 184, 0.3);
}

.badge-level-2 {
    background: linear-gradient(135deg, #fd7e14 0%, #e8590c 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(253, 126, 20, 0.3);
}

.badge-level-3 {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.badge-active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.badge-inactive {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

/* ===================================
   STYLES GÉNÉRAUX
   =================================== */

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

/* Améliore la réactivité tactile sur iOS/Android (supprime le délai 300ms) */
button,
a,
input,
select,
.tab-button,
.btn-login,
.btn-primary,
.btn-secondary,
.btn-small,
.btn-logout {
    touch-action: manipulation;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
    padding: 0;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

#app {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===================================
   LOGIN CONTAINER
   =================================== */

.login-container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    animation: slideIn 0.5s ease-out;
}

.login-container h1 {
    color: #667eea;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.5s;
}

/* ===================================
   DASHBOARD
   =================================== */

.dashboard {
    display: none;
    background: white;
    width: 100%;
    height: 100%;
    animation: slideIn 0.5s ease-out;
}

.dashboard.show {
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h2 {
    font-size: 1.8rem;
}

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

.user-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.btn-profile {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-profile:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.btn-logout {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.3);
}

.dashboard-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ===================================
   TABS NAVIGATION
   =================================== */

.tabs-nav {
    background: #f8f9fa;
    padding: 2rem 1rem;
    border-right: 1px solid #e0e0e0;
    min-width: 200px;
}

.tab-button {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: background 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-button:hover {
    background: rgba(102, 126, 234, 0.1);
}

.tab-button.active {
    background: #667eea;
    color: white;
}

.tab-button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===================================
   TAB CONTENT
   =================================== */

.tab-content {
    flex: 1;
    padding: 2rem;
    display: none;
    overflow-y: auto;
    height: 100%;
}

/* Fond blanc pour la section Bornes (comme Écoles) */
.tab-content[class*="bornes"] {
    background: #f5f7fa;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

.tab-content h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.content-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Effet 3D pour les cartes Bornes */
.bornes-card {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.content-card h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.content-card p {
    color: #666;
    line-height: 1.6;
}

/* ===================================
   FORMULAIRES
   =================================== */

.user-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.user-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.user-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.user-actions .btn-primary:active {
    transform: translateY(0);
}

input[type="date"],
input[type="text"].flatpickr-input {
    padding: 1.2rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 500;
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    transition: border-color 0.3s;
    min-width: 280px;
    height: 60px;
    cursor: pointer;
}

input[type="date"]:focus,
input[type="text"].flatpickr-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select {
    padding: 1.2rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    transition: border-color 0.3s;
    min-width: 280px;
    height: 60px;
    cursor: pointer;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.form-group label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* ===================================
   FLATPICKR CALENDAR
   =================================== */

.flatpickr-calendar {
    box-shadow: 0 5px 20px rgba(0,0,0,0.2) !important;
    width: auto !important;
}

.flatpickr-calendar.open {
    z-index: 9999 !important;
}

.flatpickr-months {
    padding: 10px 15px !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    padding: 10px !important;
    width: 40px !important;
    height: 40px !important;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    width: 14px !important;
    height: 14px !important;
}

.flatpickr-current-month {
    padding: 10px 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    flex-shrink: 0;
}

.flatpickr-current-month .cur-year {
    display: inline-block !important;
    font-weight: 700 !important;
    color: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
}

.flatpickr-current-month input.cur-year {
    display: inline-block !important;
    width: 4.5ch !important;
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    color: inherit !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    vertical-align: middle !important;
    -webkit-appearance: textfield !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* ===================================
   BOUTONS
   =================================== */

.btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #764ba2;
}

.btn-secondary {
    background: #9e9e9e;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: #757575;
}

.btn-small {
    padding: 0.5rem 0.9rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.btn-small:hover {
    opacity: 0.8;
}

.btn-edit {
    background: #2196f3;
    color: white;
}

.btn-delete {
    background: #f44336;
    color: white;
}

/* ===================================
   TABLEAUX
   =================================== */

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

.users-table {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.users-table thead,
.users-table tbody,
.users-table tfoot {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.users-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0.5rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.users-table td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
    font-size: 0.85rem;
    background: white;
    transition: background 0.2s ease;
    line-height: 1.3;
    height: auto;
}

.users-table tfoot td {
    background: transparent;
    font-weight: 700;
}

.users-table th:nth-child(1),
.users-table td:nth-child(1) { width: 18%; font-weight: 600; color: #333; }
.users-table th:nth-child(2),
.users-table td:nth-child(2) { width: 22%; }
.users-table th:nth-child(3),
.users-table td:nth-child(3) { width: 15%; }
.users-table th:nth-child(4),
.users-table td:nth-child(4) { width: 15%; }
.users-table th:nth-child(5),
.users-table td:nth-child(5) { width: 15%; }
.users-table th:nth-child(6),
.users-table td:nth-child(6) { width: 15%; }

.users-table tr:last-child td {
    border-bottom: none;
}

.users-table tbody tr {
    transition: background 0.2s ease;
}

.users-table tbody tr:hover {
    background: #f8f9ff;
}

/* Tableaux Bornes - 6 colonnes : Nom, Détail, Sessions, Énergie, %, Coût */
.bornes-user-table th:nth-child(1),
.bornes-user-table td:nth-child(1),
.bornes-user-table tfoot td:nth-child(1) { width: 18%; }
.bornes-user-table th:nth-child(2),
.bornes-user-table td:nth-child(2),
.bornes-user-table tfoot td:nth-child(2) { width: 28%; }
.bornes-user-table th:nth-child(3),
.bornes-user-table td:nth-child(3),
.bornes-user-table tfoot td:nth-child(3) { width: 12%; }
.bornes-user-table th:nth-child(4),
.bornes-user-table td:nth-child(4),
.bornes-user-table tfoot td:nth-child(4) { width: 16%; }
.bornes-user-table th:nth-child(5),
.bornes-user-table td:nth-child(5),
.bornes-user-table tfoot td:nth-child(5) { width: 10%; }
.bornes-user-table th:nth-child(6),
.bornes-user-table td:nth-child(6),
.bornes-user-table tfoot td:nth-child(6) { width: 16%; }

.bornes-sessions-table th:nth-child(1),
.bornes-sessions-table td:nth-child(1) { width: 15%; }
.bornes-sessions-table th:nth-child(2),
.bornes-sessions-table td:nth-child(2) { width: 14%; }
.bornes-sessions-table th:nth-child(3),
.bornes-sessions-table td:nth-child(3) { width: 14%; }
.bornes-sessions-table th:nth-child(4),
.bornes-sessions-table td:nth-child(4) { width: 12%; }
.bornes-sessions-table th:nth-child(5),
.bornes-sessions-table td:nth-child(5) { width: 13%; }
.bornes-sessions-table th:nth-child(6),
.bornes-sessions-table td:nth-child(6) { width: 12%; }
.bornes-sessions-table th:nth-child(7),
.bornes-sessions-table td:nth-child(7) { width: 20%; }

/* Wrapper flex : tableau + slider vertical */
.sessions-with-slider {
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* Conteneur scrollable pour les sessions */
.sessions-scroll-container {
    flex: 1;
    max-height: 500px;
    overflow-y: scroll !important;
    overflow-x: auto;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

/* Personnalisation de la scrollbar */
.sessions-scroll-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.sessions-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
    margin: 4px;
}

.sessions-scroll-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

.sessions-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Pour Firefox */
.sessions-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

/* Piste du slider vertical */
.sessions-slider-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px;
    background: #f8f8ff;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-radius: 0 8px 8px 0;
    min-width: 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sessions-slider-label {
    font-size: 0.7rem;
    color: #667eea;
    font-weight: 700;
    line-height: 1;
    user-select: none;
}

/* Slider vertical */
.sessions-vslider {
    -webkit-appearance: slider-vertical;
    appearance: auto;
    writing-mode: vertical-lr;
    direction: rtl;
    width: 22px;
    flex: 1;
    margin: 4px 0;
    cursor: pointer;
    accent-color: #667eea;
    background: transparent;
}

/* WebKit : track et thumb du slider */
.sessions-vslider::-webkit-slider-runnable-track {
    width: 6px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 3px;
}

.sessions-vslider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(102,126,234,0.5);
    cursor: grab;
    margin-left: -6px;
}

.sessions-vslider::-webkit-slider-thumb:active {
    cursor: grabbing;
    background: #764ba2;
    box-shadow: 0 2px 10px rgba(118,75,162,0.6);
}

/* Firefox */
.sessions-vslider::-moz-range-track {
    width: 6px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 3px;
}

.sessions-vslider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(102,126,234,0.5);
    cursor: grab;
}

/* ===================================
   ACTION BUTTONS
   =================================== */

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: center;
}

.btn-small {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-edit {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(23, 162, 184, 0.3);
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(23, 162, 184, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.btn-delete:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4);
}

.btn-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===================================
   MODAL
   =================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-actions .btn-primary {
    flex: 1;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modal-actions .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.modal-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-actions .btn-secondary {
    flex: 1;
    padding: 0.9rem 1.5rem;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-actions .btn-secondary:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
}

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

/* ===================================
   ÉTATS
   =================================== */

.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 500;
}

.loading-spinner p {
    animation: pulse 1.5s ease-in-out infinite;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
    font-size: 1.1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ===================================
   RESPONSIVE - TABLETTE (max 1024px)
   =================================== */

@media (max-width: 1024px) {
    .tabs-nav {
        min-width: 160px;
    }

    select,
    input[type="date"],
    input[type="text"].flatpickr-input {
        min-width: 200px;
    }
}

/* ===================================
   RESPONSIVE - MOBILE (max 768px)
   =================================== */

@media (max-width: 768px) {

    /* Body : permettre le scroll sur mobile */
    body {
        height: auto;
        min-height: 100vh;
        overflow: auto;
        align-items: flex-start;
        padding: 0;
    }

    #app {
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
    }

    /* Login */
    .login-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
        max-width: 100%;
        border-radius: 12px;
    }

    .login-container h1 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    /* Dashboard : pleine hauteur, scroll vertical */
    .dashboard {
        height: auto !important;
        min-height: 100vh;
        border-radius: 0;
        width: 100%;
    }

    .dashboard.show {
        display: flex !important;
        flex-direction: column;
        height: auto !important;
        min-height: 100vh;
        width: 100%;
    }

    /* Header */
    .dashboard-header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        border-radius: 0;
        text-align: center;
    }

    .dashboard-header h2 {
        font-size: 1.3rem;
    }

    .user-info {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .user-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        word-break: break-word;
    }

    .btn-logout {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        width: 100%;
    }

    /* Dashboard content : colonne */
    .dashboard-content {
        flex-direction: column;
        overflow: visible;
    }

    /* Navigation par onglets : tous les boutons visibles, pas de scroll */
    .tabs-nav {
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
        min-width: auto;
        padding: 0.3rem 0.4rem;
        display: flex;
        flex-direction: row;
        overflow: visible;
        gap: 0.25rem;
        white-space: nowrap;
        /* Pas de mask — tous les boutons doivent être visibles */
        -webkit-mask-image: none;
        mask-image: none;
        /* Distribuer l'espace équitablement */
        justify-content: space-around;
    }

    .tab-button {
        flex: 1;
        flex-shrink: 1;
        padding: 0.35rem 0.2rem;
        font-size: 0.75rem;
        margin-bottom: 0;
        border-radius: 10px;
        flex-direction: column;
        gap: 0.1rem;
        text-align: center;
        min-width: 0;
        max-width: none;
    }

    .tab-button span:first-child {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .tab-button span:last-child {
        font-size: 0.62rem;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Contenu des onglets */
    .tab-content {
        padding: 1rem;
        height: auto;
        overflow-y: visible;
    }

    .tab-content h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .content-card {
        padding: 1rem;
    }

    /* Formulaires */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group label {
        font-size: 1rem;
    }

    select,
    input[type="date"],
    input[type="text"].flatpickr-input {
        min-width: 0;
        width: 100%;
        font-size: 1rem;
        padding: 0.8rem 1rem;
        height: auto;
    }

    .user-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }

    /* Tableaux : scroll horizontal */
    .users-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.8rem;
    }

    .users-table th,
    .users-table td {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* Boutons d'action dans les tableaux */
    .action-buttons {
        flex-direction: column;
        gap: 0.3rem;
    }

    .btn-small {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }

    /* Sessions scroll */
    .sessions-scroll-container {
        max-height: 350px;
    }

    /* Slider vertical : masqué sur mobile (scroll natif suffisant) */
    .sessions-slider-track {
        display: none;
    }

    /* Statistiques globales : 2 colonnes sur mobile */
    .stats-grid-mobile {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Modal */
    .modal {
        width: 95%;
        padding: 1.5rem 1rem;
        margin: 0.5rem;
        max-height: 95vh;
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-actions button {
        width: 100%;
    }

    /* Badges */
    .badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
        min-width: 60px;
    }

    /* Debug SQL */
    pre {
        font-size: 0.7rem;
    }

    /* Masquer la colonne "Détail" (emails) sur mobile */
    .bornes-user-table th:nth-child(2),
    .bornes-user-table td:nth-child(2) {
        display: none;
    }

    /* Masquer colonnes secondaires du tableau sessions sur mobile */
    /* Garder : #, Utilisateur, Énergie, Coût — Masquer : Début, Fin, Durée, Borne */
    .bornes-sessions-table th:nth-child(3),
    .bornes-sessions-table td:nth-child(3),
    .bornes-sessions-table th:nth-child(4),
    .bornes-sessions-table td:nth-child(4),
    .bornes-sessions-table th:nth-child(5),
    .bornes-sessions-table td:nth-child(5) {
        display: none;
    }

    /* Classe générique pour masquer des colonnes sur mobile */
    .col-hide-mobile {
        display: none !important;
    }

    /* Tableau sessions : retirer le min-width sur mobile pour éviter le scroll horizontal */
    .sessions-table {
        min-width: unset !important;
        width: 100% !important;
    }
}

/* ===================================
   RESPONSIVE - TRÈS PETIT (max 480px)
   =================================== */

@media (max-width: 480px) {
    .dashboard-header h2 {
        font-size: 1.1rem;
    }

    .tab-button {
        min-width: 0;
        padding: 0.3rem 0.15rem;
    }

    .tab-button span:first-child {
        font-size: 0.95rem;
    }

    .tab-button span:last-child {
        font-size: 0.58rem;
    }

    .tab-content {
        padding: 0.75rem;
    }

    .content-card {
        padding: 0.75rem;
    }

    /* Statistiques : 1 colonne sur très petit écran */
    .stats-grid-mobile {
        grid-template-columns: 1fr !important;
    }
}

/* ===================================
   FLATPICKR - MOBILE
   =================================== */

@media (max-width: 768px) {
    /* Calendrier pleine largeur sur mobile */
    .flatpickr-calendar {
        width: 100% !important;
        max-width: 340px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
    }

    .flatpickr-current-month {
        padding: 8px 30px !important;
    }

    .flatpickr-days {
        width: 100% !important;
    }

    .dayContainer {
        width: 100% !important;
        min-width: unset !important;
        max-width: unset !important;
    }

    .flatpickr-day {
        max-width: 14.28% !important;
        height: 36px !important;
        line-height: 36px !important;
        font-size: 0.85rem !important;
    }

    /* Input date picker : pleine largeur */
    #dateRangePicker {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 0.95rem !important;
        padding: 0.7rem 0.8rem !important;
        height: auto !important;
    }
}

/* Made with Bob */

/* ===================================
   TOAST NOTIFICATIONS
   =================================== */

.toast-fade-enter-active,
.toast-fade-leave-active {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast-fade-enter-from,
.toast-fade-leave-to {
    opacity: 0;
    transform: translateX(-50%) translateY(1rem);
}
.toast-fade-enter-to,
.toast-fade-leave-from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ===================================
   WIDGET STATUT NODE-RED EVDUTY
   =================================== */

/* ── Carte statut Node-RED ── */
.nodered-status-card {
    border-left: 4px solid #4a9eff;
}

.nodered-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.nodered-status-header h4 {
    margin: 0;
}

.btn-refresh-status {
    background: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.btn-refresh-status:hover { background: #f0f0f0; }
.btn-refresh-status:disabled { opacity: 0.5; cursor: not-allowed; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin 0.8s linear infinite; }

/* ── Badge statut ── */
.status-badge-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.status-up            { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-down          { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.status-en-cours      { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.status-en-rattrapage { background: #cce5ff; color: #004085; border: 1px solid #b8daff; }
.status-inconnu       { background: #e2e3e5; color: #383d41; border: 1px solid #d6d8db; }

/* ── Indicateur MQTT ── */
.status-mqtt-indicator {
    font-size: 13px;
    color: #666;
}

.mqtt-dot-green { color: #28a745; font-size: 16px; }
.mqtt-dot-red   { color: #dc3545; font-size: 16px; }

/* ── Détails ── */
.status-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
}

.status-detail-row {
    display: flex;
    gap: 8px;
    padding: 3px 0;
    border-bottom: 1px solid #eee;
}

.status-detail-row:last-child { border-bottom: none; }

.detail-label {
    font-weight: 600;
    color: #555;
    min-width: 130px;
}

.detail-value { color: #333; }

.error-row .detail-label,
.error-text { color: #dc3545; }

/* ── Section Reset ── */
.action-divider {
    border-top: 1px solid #eee;
    margin: 16px 0 12px;
}

.reinit-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.input-month {
    padding: 7px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

.btn-reinit {
    background: #e67e22;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.btn-reinit:hover:not(:disabled) { background: #d35400; }
.btn-reinit:disabled { opacity: 0.5; cursor: not-allowed; }

.reinit-hint {
    font-size: 12px;
    color: #888;
    margin: 8px 0 0;
}

.reinit-feedback {
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.reinit-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.reinit-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── Barre de progression rattrapage ── */
.progress-container {
    background: #eef4ff;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #004085;
    margin-bottom: 6px;
    font-weight: 500;
}

.progress-bar-track {
    background: #cce5ff;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #4a9eff, #0056b3);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-pct {
    text-align: right;
    font-size: 12px;
    color: #004085;
    margin-top: 4px;
    font-weight: 600;
}

.progress-month-only {
    background: #eef4ff;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #004085;
}

/* ===================================
   DASHBOARD - NODE-RED STATUS CARD
   =================================== */

/* ── Carte statut Node-RED ── */
.nodered-status-card {
    border-left: 4px solid #4a9eff;
}

.nodered-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.nodered-status-header h4 {
    margin: 0;
}

.btn-refresh-status {
    background: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.btn-refresh-status:hover { background: #f0f0f0; }
.btn-refresh-status:disabled { opacity: 0.5; cursor: not-allowed; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin 0.8s linear infinite; }

/* ── Badge statut ── */
.status-badge-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.status-up           { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-down         { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.status-en-cours     { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.status-en-rattrapage{ background: #cce5ff; color: #004085; border: 1px solid #b8daff; }
.status-inconnu      { background: #e2e3e5; color: #383d41; border: 1px solid #d6d8db; }

/* ── Indicateur MQTT ── */
.status-mqtt-indicator {
    font-size: 13px;
    color: #666;
}

.mqtt-dot-green { color: #28a745; font-size: 16px; }
.mqtt-dot-red   { color: #dc3545; font-size: 16px; }

/* ── Détails ── */
.status-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
}

.status-detail-row {
    display: flex;
    gap: 8px;
    padding: 3px 0;
    border-bottom: 1px solid #eee;
}

.status-detail-row:last-child { border-bottom: none; }

.detail-label {
    font-weight: 600;
    color: #555;
    min-width: 130px;
}

.detail-value { color: #333; }

.error-row .detail-label,
.error-text { color: #dc3545; }

/* ── Section Reset ── */
.action-divider {
    border-top: 1px solid #eee;
    margin: 16px 0 12px;
}

.reinit-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.input-month {
    padding: 7px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

.btn-reinit {
    background: #e67e22;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.btn-reinit:hover:not(:disabled) { background: #d35400; }
.btn-reinit:disabled { opacity: 0.5; cursor: not-allowed; }

.reinit-hint {
    font-size: 12px;
    color: #888;
    margin: 8px 0 0;
}

.reinit-feedback {
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.reinit-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.reinit-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── Barre de progression rattrapage ── */
.progress-container {
    background: #eef4ff;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #004085;
    margin-bottom: 6px;
    font-weight: 500;
}

.progress-bar-track {
    background: #cce5ff;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #4a9eff, #0056b3);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-pct {
    text-align: right;
    font-size: 12px;
    color: #004085;
    margin-top: 4px;
    font-weight: 600;
}

.progress-month-only {
    background: #eef4ff;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #004085;
}

/* ── Carte Redémarrage Serveur ── */
.restart-server-card {
    border-left: 4px solid #17a2b8;
}

.restart-header {
    margin-bottom: 12px;
}

.restart-header h4 {
    margin: 0;
}

.restart-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.btn-restart-server {
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    align-self: flex-start;
}

.btn-restart-server:hover:not(:disabled) {
    background: #138496;
}

.btn-restart-server:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.restart-feedback {
    margin-top: 4px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* ===================================
   BOUTON TEST NOTIFICATION
   =================================== */

.btn-test-notification {
    margin-top: 10px;
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-test-notification:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-test-notification:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.notification-test-result {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

.notification-test-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification-test-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   PROFILE PANEL STYLES
   =================================== */

.profile-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
}

@media (max-width: 968px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.profile-header h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.5rem;
}

.profile-subtitle {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.profile-form .form-group {
    margin-bottom: 1.5rem;
}

.profile-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="tel"],
.profile-form input[type="time"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.profile-form input:focus {
    outline: none;
    border-color: #4CAF50;
}

.profile-form input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

.profile-actions {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.profile-card .profile-form .profile-actions button.btn-test-notification,
.profile-card .profile-form .profile-actions button.btn-primary {
    flex: 1;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    vertical-align: top;
}

.btn-test-notification {
    background: #2196F3;
    color: white;
}

.btn-test-notification:hover:not(:disabled) {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-test-notification:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.notification-test-result {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.notification-test-result.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #4CAF50;
}

.notification-test-result.error {
    background-color: #ffebee;
    color: #c62828;
    border: 2px solid #f44336;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-card h5 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.info-card li:last-child {
    border-bottom: none;
}

.info-card li strong {
    color: #333;
}
