:root {
  --primary: #1e40af !important;
  --sidebar-bg: #003281 !important;
}

#branding h1 {
  font-size: 24px !important;
  color: #1e40af;
}

.module caption {
  font-weight: bold;
  color: #1e40af;
}

.sidebar,
.main-sidebar,
.nav-sidebar,
.sidebar-menu {
  background-color: #003281 !important;
}

.sidebar a,
.main-sidebar a,
.nav-sidebar a,
.sidebar-menu a {
  color: #fff !important;
}

.button.default {
  background-color: #1e40af !important;
  border-radius: 6px !important;
}


body {
  background-color: #f9faff;
  font-family: 'Segoe UI', sans-serif;
}

h1 {
  color: #1e40af;
  font-size: 24px;
}


/* Resize login page logo */
.login-logo img {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* static/css/custom_admin.css */
.login-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 20px;
}

/* Center login logo in card-body */
.card-body .login-logo,
.card-body .login-logo h1,
.card-body .login-logo picture {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.card-body .login-logo img {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
    text-align: center;
}

/* Center login logo in login-box */
.login-box .login-logo,
.login-box .login-logo h1,
.login-box .login-logo picture {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.login-box .login-logo img {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
    text-align: center;
}

/* White background top navbar */
.navbar-white {
    background-color: #ffffff !important;
    color: #1e40af;
}

.sidebar,
.main-sidebar,
.nav-sidebar,
.sidebar-menu,
body .sidebar,
body .main-sidebar,
body .nav-sidebar {
    background-color: #003281 !important;
}

.sidebar a,
.main-sidebar a,
.nav-sidebar a,
.sidebar-menu a {
    color: white !important;
}

.sidebar .nav-link.active,
.main-sidebar .nav-link.active,
.nav-sidebar .nav-link.active,
.sidebar-menu .nav-link.active,
.sidebar .nav-link.active:hover,
.main-sidebar .nav-link.active:hover {
    background-color: #ffffff !important;
    color: #1e40af !important;
    font-weight: bold;
}

/* Override Jazzmin's primary sidebar color */
body[class*="sidebar-primary"] .sidebar,
body[class*="sidebar-primary"] .main-sidebar,
body[class*="sidebar-primary"] .nav-sidebar,
.sidebar-primary,
[class*="sidebar-primary"] {
    background-color: #003281 !important;
}

.brand-link {
    background-color: #ffffff !important;
    color: #1e40af !important;
}

.brand-text {
    color: rgb(1, 90, 233) !important;
}





/* admin_schedule.css */
.appointment-dashboard {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 100%;
    overflow-x: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.dashboard-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.date-picker-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.today-btn {
    padding: 5px 10px;
    background: #417690;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.legend {
    display: flex;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

.legend-color.available {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
}

.legend-color.booked {
    background-color: #ffebee;
    border: 1px solid #ef9a9a;
}

.appointment-grid-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.grid-scroll-wrapper {
    overflow-x: auto;
}

.admin-calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.admin-calendar th, .admin-calendar td {
    border: 1px solid #e0e0e0;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

.admin-calendar th {
    background-color: #f5f5f5;
    position: sticky;
    top: 0;
    font-weight: 500;
}

.barber-column {
    width: 150px;
    min-width: 150px;
    position: sticky;
    left: 0;
    background-color: white;
    z-index: 2;
}

.time-slot-header {
    min-width: 100px;
}

.barber-name {
    text-align: left;
    position: sticky;
    left: 0;
    background-color: white;
    z-index: 1;
}

.barber-specialization {
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
}

.time-slot {
    height: 80px;
    transition: background-color 0.2s;
}

.time-slot.booked {
    background-color: #ffffff;
}

/* Disable hover on booked time slots */
.time-slot.booked:hover {
    background-color: #ffffff !important;
    background: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
}

.time-slot.available {
    background-color: #e8f5e9;
}

.appointment-details {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.customer-info {
    margin-bottom: 5px;
}

.phone-number {
    display: block;
    font-size: 0.8em;
    color: #555;
}

.service-info {
    font-size: 0.9em;
    color: #333;
}

.service-duration {
    font-size: 0.8em;
    color: #666;
    display: inline-block;
    margin-left: 5px;
}

.appointment-actions {
    text-align: right;
}

.edit-link {
    color: #2196f3;
    text-decoration: none;
}

.available-slot {
    color: #2e7d32;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.add-appointment {
    display: none;
    margin-top: 5px;
    color: #388e3c;
    text-decoration: none;
    font-weight: bold;
}

.time-slot.available:hover .add-appointment {
    display: block;
}

.dashboard-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    font-size: 0.9em;
    color: #555;
}

.export-options {
    display: flex;
    gap: 10px;
}

.export-btn {
    padding: 5px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}

.export-btn:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dashboard-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .barber-column {
        width: 120px;
        min-width: 120px;
    }
    
    .time-slot-header {
        min-width: 80px;
    }
}

/* Custom Admin Styles for ТОЧКА Barbershop */

/* Enhanced Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.badge-primary {
    color: #fff;
    background-color: #1e40af;
}

.badge-success {
    color: #fff;
    background-color: #059669;
}

.badge-info {
    color: #fff;
    background-color: #0891b2;
}

.badge-warning {
    color: #fff;
    background-color: #d97706;
}

.badge-danger {
    color: #fff;
    background-color: #dc2626;
}

.badge-secondary {
    color: #fff;
    background-color: #6b7280;
}

/* Enhanced Table Styles */
#result_list {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#result_list thead th {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 12px 16px;
}

#result_list tbody tr:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

#result_list tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

/* Enhanced Button Styles */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Enhanced Form Styles */
.form-row {
    margin-bottom: 20px;
}

.form-row label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row input[type="password"]:focus,
.form-row input[type="number"]:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Enhanced Fieldset Styles */
.module h2 {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 16px 20px;
    margin: 0;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

.module {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

/* Enhanced Action Buttons */
.object-tools {
    margin-bottom: 20px;
}

.object-tools a {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    display: inline-block;
    margin-right: 10px;
}

.object-tools a:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    color: white;
    text-decoration: none;
}

/* Enhanced Search and Filter Styles */
#searchbar {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

#searchbar:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

#changelist-filter {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 16px;
}

#changelist-filter h2 {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

#changelist-filter li {
    margin-bottom: 8px;
}

#changelist-filter a {
    color: #374151;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

#changelist-filter a:hover {
    background-color: #f3f4f6;
    color: #1e40af;
}

#changelist-filter a.selected {
    background-color: #1e40af;
    color: white;
}

/* Enhanced Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 8px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease-in-out;
}

.pagination a:hover {
    background-color: #f3f4f6;
    border-color: #1e40af;
    color: #1e40af;
}

.pagination .this-page {
    background-color: #1e40af;
    color: white;
    border-color: #1e40af;
}

/* Enhanced Breadcrumbs */
.breadcrumbs {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.breadcrumbs a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Enhanced Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background-color: #dcfce7;
    color: #166534;
}

.status-inactive {
    background-color: #fef2f2;
    color: #991b1b;
}

/* Enhanced Specialization Tags */
.specialization-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.specialization-tag {
    background-color: #dbeafe;
    color: #1e40af;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Enhanced Working Hours Display */
.working-hours {
    color: #6b7280;
    font-size: 12px;
    font-style: italic;
}

/* Enhanced Rating Display */
.rating-display {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-stars {
    color: #fbbf24;
    font-size: 14px;
}

.rating-score {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    #result_list {
        font-size: 12px;
    }
    
    #result_list thead th,
    #result_list tbody td {
        padding: 8px 12px;
    }
    
    .object-tools {
        text-align: center;
    }
    
    .object-tools a {
        display: block;
        margin-bottom: 8px;
        margin-right: 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Enhanced Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #1e40af;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Admin Styles for Combined Appointment Form */

/* Main form container */
.form-row {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.form-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

/* Fieldset styling */
fieldset.module {
    border: none;
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

fieldset.module h2 {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 20px 24px;
    border-radius: 16px 16px 0 0;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    border: none;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

fieldset.module h2::before {
    content: '';
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

fieldset.module .description {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 16px 0;
    color: #0369a1;
    font-size: 14px;
    font-weight: 500;
}

/* Field styling */
.form-row label {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    display: block;
    font-size: 15px;
    position: relative;
}

.form-row label::after {
    content: ' *';
    color: #ef4444;
    font-weight: 700;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="date"],
.form-row input[type="time"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-row input[type="text"]:hover,
.form-row input[type="tel"]:hover,
.form-row input[type="date"]:hover,
.form-row input[type="time"]:hover,
.form-row select:hover,
.form-row textarea:hover {
    border-color: #cbd5e1;
    background-color: #fafafa;
}

.form-row input[type="text"]:focus,
.form-row input[type="tel"]:focus,
.form-row input[type="date"]:focus,
.form-row input[type="time"]:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Two-column layout for related fields */
.form-row .related-widget-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: end;
}

/* Status field styling */
.form-row select[name="status"] {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 600;
}

/* Notes field styling */
.form-row textarea[name="notes"] {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

/* Submit button styling */
.submit-row {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 20px;
    margin-top: 20px;
    border-radius: 0 0 8px 8px;
}

.submit-row input[type="submit"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-row input[type="submit"]:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Pre-filled message styling */
.prefilled-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.prefilled-message strong {
    font-weight: 700;
}

.prefilled-fields {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
}

.prefilled-fields h4 {
    margin: 0 0 12px 0;
    color: #0369a1;
    font-size: 14px;
    font-weight: 600;
}

.prefilled-fields ul {
    margin: 0;
    padding-left: 20px;
    color: #0369a1;
}

.prefilled-fields li {
    margin-bottom: 6px;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .form-row .related-widget-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-row {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    fieldset.module h2 {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Service and Barber field enhancements */
.form-row select[name="service"],
.form-row select[name="barber"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Date and time field enhancements */
.form-row input[type="date"],
.form-row input[type="time"] {
    font-family: inherit;
    color: #374151;
}

/* Phone number field with country code styling */
.form-row input[name="phone_number"] {
    position: relative;
    padding-left: 60px;
}

.form-row input[name="phone_number"]::before {
    content: '+996';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    pointer-events: none;
}

.phone-number-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-number-field-wrapper::before {
    content: '+996';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    z-index: 10;
    background: white;
    padding: 2px 4px;
    border-radius: 4px;
}

.form-row input[name="phone_number"]::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Phone number validation styling */
.form-row input[name="phone_number"]:valid {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.form-row input[name="phone_number"]:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* Customer name field with validation hint */
.form-row input[name="customer_name"]::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Collapsible section styling */
fieldset.collapse {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 20px;
}

fieldset.collapse h2 {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    cursor: pointer;
    position: relative;
}

fieldset.collapse h2::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

fieldset.collapse.collapsed h2::after {
    transform: translateY(-50%) rotate(-90deg);
}