/* Trimr Admin Portal - Production Ops UI */

:root {
    --trimr-purple: #7C3AED;
    --trimr-purple-light: #A78BFA;
    --trimr-purple-dark: #5B21B6;
    --bg-light: #FAFBFC;
    --bg-white: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --sidebar-width: 180px;
    --topbar-height: 44px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Admin Container */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Modern Design */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.02);
}

.sidebar-header {
    padding: 16px 14px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-white);
}

.sidebar-logo {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--trimr-purple) 0%, var(--trimr-purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3px;
    letter-spacing: -0.4px;
}

.sidebar-subtitle {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 500;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-light);
    color: var(--trimr-purple);
    transform: translateX(2px);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
    color: var(--trimr-purple);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.08);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, var(--trimr-purple) 0%, var(--trimr-purple-light) 100%);
    border-radius: 0 2px 2px 0;
}

.nav-icon {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 2;
    transition: transform 0.2s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.nav-item.active .nav-icon {
    color: var(--trimr-purple);
}

.nav-text {
    flex: 1;
    letter-spacing: -0.2px;
}

.nav-section {
    margin: 12px 0;
    padding: 8px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.nav-section-header {
    padding: 8px 12px;
    margin-bottom: 4px;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-section-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-sub-item {
    padding-left: 32px;
    font-size: 12px;
}

.nav-sub-item .nav-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
}

.sidebar-footer {
    padding: 12px 8px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-white);
}

.logout-form {
    margin: 0;
}

.logout-btn {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--error);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* Main Content Area */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

/* Topbar - Modern Design */
.topbar {
    height: 56px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: var(--bg-light);
    color: var(--trimr-purple);
}

.sidebar-toggle svg {
    width: 20px;
    height: 20px;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.topbar-right {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.user-info:hover {
    background: var(--bg-light);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--trimr-purple) 0%, var(--trimr-purple-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.user-avatar svg {
    width: 20px;
    height: 20px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.user-role {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* Admin Content */
.admin-content {
    flex: 1;
    padding: 24px;
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
}

/* Alerts */
.alert {
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 12px;
    border-left: 3px solid;
}

.alert-success {
    background: #ECFDF5;
    color: #065F46;
    border-left-color: #10B981;
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border-left-color: #EF4444;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background: var(--trimr-purple);
    color: white;
}

.btn-primary:hover {
    background: var(--trimr-purple-dark);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-secondary);
}

.btn-sm {
    padding: 4px 10px;
    font-size: 11px;
}

.btn-block {
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 0;
}

.form-control {
    width: 100%;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.15s, box-shadow 0.15s;
    height: 30px;
    background: var(--bg-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--trimr-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Phone Input Group with Prefix */
.phone-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-white);
}

.phone-input-group:focus-within {
    border-color: var(--trimr-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: var(--bg-light);
    border-right: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    user-select: none;
}

.phone-input {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 6px 10px;
}

.phone-input:focus {
    outline: none;
    box-shadow: none;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-results .result-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
}

.search-results .result-item:hover {
    background: var(--bg-light);
}

.search-results .result-item:last-child {
    border-bottom: none;
}

/* Operating Hours Section */
.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-row {
    display: grid;
    grid-template-columns: 140px 1fr 80px;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-day {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hours-day label {
    margin: 0;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
}

.day-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--trimr-purple);
}

.hours-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hours-time span {
    color: var(--text-muted);
    font-size: 12px;
}

.hours-input {
    width: 100px;
    padding: 4px 8px;
    font-size: 12px;
}

.hours-input:disabled {
    background: var(--bg-light);
    opacity: 0.6;
}

.hours-status {
    text-align: right;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-open {
    background: #ECFDF5;
    color: var(--success);
}

.status-closed {
    background: #FEF2F2;
    color: var(--error);
}

/* Services Section */
.category-header-row {
    background: var(--bg-light) !important;
}

.category-header-row td {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.service-row td {
    font-size: 13px;
}

.price-input-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.currency-symbol {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
}

.service-price-input,
.service-duration-input {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
}

.service-active-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--success);
}

/* Category Management Styles - Hierarchical Tree View */
.category-parent-row {
    background: #F8F9FA !important;
    font-weight: 600;
    border-left: 3px solid var(--trimr-purple);
}

.category-parent-row:hover {
    background: #F0F4F8 !important;
}

.category-parent-row td {
    padding: 12px 16px !important;
    border-bottom: 1px solid #E5E7EB !important;
    vertical-align: middle;
}

.category-parent-row td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.category-child-row {
    background: var(--bg-white);
    border-left: 3px solid transparent;
}

.category-child-row:hover {
    background: #FAFBFC;
}

.category-child-row td {
    padding: 10px 16px 10px 40px !important;
    border-top: 1px solid #F3F4F6 !important;
    border-bottom: 1px solid #F3F4F6 !important;
    vertical-align: middle;
}

.category-child-row td:first-child {
    color: var(--text-primary);
    font-size: 12px;
    position: relative;
}

/* Tree connector symbol styling */
.category-child-row td:first-child span {
    display: inline-block;
    width: 20px;
    text-align: center;
    margin-right: 4px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-active {
    background: #ECFDF5;
    color: var(--success);
}

.status-inactive {
    background: #FEF2F2;
    color: var(--error);
}

.form-control::placeholder {
    color: var(--text-muted);
}

label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.page-header h1 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

/* Filters - True Inline Single Row */
.filters-section {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.filters-form {
    display: block;
}

.filters-grid {
    display: grid;
    grid-template-columns: 2.5fr 1.2fr 1.2fr auto;
    gap: 16px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group.actions {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
    min-width: 200px;
}

.filter-group.actions .btn {
    flex: 1;
    white-space: nowrap;
    min-width: 80px;
}

/* Tables - Dense, Professional */
.table-container {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table thead {
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
}

.data-table th {
    padding: 9px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.data-table td {
    padding: 10px 12px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    vertical-align: middle;
    color: var(--text-primary);
}

.data-table tbody tr {
    transition: background 0.1s;
}

.data-table tbody tr:hover {
    background: #F8F9FF;
}

.data-table tbody tr:nth-child(even) {
    background: #FAFBFC;
}

.data-table tbody tr:nth-child(even):hover {
    background: #F8F9FF;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-confirmed {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-completed {
    background: #D1FAE5;
    color: #065F46;
}

.status-cancelled {
    background: #FEE2E2;
    color: #991B1B;
}

.status-active {
    background: #D1FAE5;
    color: #065F46;
}

.status-inactive {
    background: #F1F5F9;
    color: #64748B;
}

.status-verified {
    background: #D1FAE5;
    color: #065F46;
}

.status-rejected {
    background: #FEE2E2;
    color: #991B1B;
}

.status-suspended {
    background: #FEE2E2;
    color: #991B1B;
}

.role-badge {
    display: inline-block;
    padding: 2px 6px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 10px;
    margin-right: 4px;
    text-transform: capitalize;
    font-weight: 500;
}

/* Detail Cards */
.detail-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 16px;
}

.detail-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.detail-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-section h2 {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.detail-item label {
    display: block;
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-item div {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.detail-item a {
    color: var(--trimr-purple);
    text-decoration: none;
}

.detail-item a:hover {
    text-decoration: underline;
}

.update-form {
    margin-top: 12px;
}

.amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--trimr-purple);
}

/* Salon Details Specific */
.detail-header {
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.salon-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.salon-logo-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--trimr-purple) 0%, var(--trimr-purple-light) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.photo-item {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-light);
}

.photo-wrapper {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: var(--bg-light);
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--trimr-purple);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.photo-caption {
    padding: 6px 8px;
    font-size: 11px;
    color: var(--text-secondary);
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Form Validation */
.input-error {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.field-error {
    color: var(--error);
    font-size: 11px;
    margin-top: 4px;
    display: block;
}

.create-form textarea.form-control {
    min-height: 60px;
    resize: vertical;
    font-family: inherit;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    padding: 10px 12px;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 12px;
}

.pagination-btn {
    padding: 5px 10px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.15s;
    font-size: 12px;
}

.pagination-btn:hover {
    background: var(--bg-light);
    border-color: var(--trimr-purple);
    color: var(--trimr-purple);
}

/* Loader Overlay - Top Notch Design */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.3s ease;
    pointer-events: all;
}

.loader-overlay.active {
    display: flex;
    opacity: 1;
}

.loader-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    padding: 32px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 
                0 0 0 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: loaderFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
}

@keyframes loaderFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.loader-spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border: 4px solid rgba(124, 58, 237, 0.1);
    border-top-color: #7C3AED;
    border-right-color: #A78BFA;
    border-radius: 50%;
    animation: spin 0.9s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    position: relative;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.loader-spinner::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: rgba(124, 58, 237, 0.3);
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite reverse;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    margin-top: 20px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #7C3AED;
}

/* Button Loading State */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Form Loading State */
.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Login Page - Enhanced Design */
/* Modern Login Page */
.login-page {
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 50%, #C4B5FD 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.login-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.4;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.35;
    }
}

.login-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.login-icon {
    filter: drop-shadow(0 4px 6px rgba(124, 58, 237, 0.2));
}

.login-logo {
    font-size: 36px;
    font-weight: 700;
    color: var(--trimr-purple);
    text-align: center;
    margin: 0 0 8px 0;
    letter-spacing: -0.8px;
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.login-description {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
    font-weight: 400;
}

.login-alert {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.login-form {
    margin-top: 8px;
}

.login-form .form-group {
    margin-bottom: 0;
}

.login-form .form-group:not(:last-of-type) {
    margin-bottom: 12px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    height: 46px;
    background: var(--bg-white);
    color: var(--text-primary);
}

.login-form .form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.login-form .form-control:focus {
    outline: none;
    border-color: var(--trimr-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    background: var(--bg-white);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    min-height: 20px;
}

.login-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.login-form .checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--trimr-purple);
    flex-shrink: 0;
}

.forgot-password {
    color: var(--trimr-purple);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.forgot-password:hover {
    color: var(--trimr-purple-dark);
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    height: 48px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
    background: linear-gradient(135deg, #6D28D9 0%, #8B5CF6 100%);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.btn-login svg {
    transition: transform 0.2s ease;
}

.btn-login:hover svg {
    transform: translateX(2px);
}

.login-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.login-footer p {
    color: var(--text-muted);
    font-size: 11px;
    margin: 0;
    font-weight: 400;
}

/* Login Page */
.login-page-old {
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 360px;
    padding: 24px;
}

.login-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 32px 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--trimr-purple);
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.login-title {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Dashboard Stats */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--trimr-purple) 0%, var(--trimr-purple-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--trimr-purple-light);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card-users::before {
    background: linear-gradient(90deg, #3B82F6 0%, #60A5FA 100%);
}

.stat-card-salons::before {
    background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
}

.stat-card-bookings::before {
    background: linear-gradient(90deg, #F59E0B 0%, #FBBF24 100%);
}

.stat-card-revenue::before {
    background: linear-gradient(90deg, #8B5CF6 0%, #A78BFA 100%);
}

.stat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.stat-card-users .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
    color: #3B82F6;
}

.stat-card-salons .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.05) 100%);
    color: #10B981;
}

.stat-card-bookings .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    color: #F59E0B;
}

.stat-card-revenue .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
    color: #8B5CF6;
}

.stat-card:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 6px 0 3px 0;
    line-height: 1.1;
    letter-spacing: -0.4px;
}

.stat-subtext {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 2px;
}

.dashboard-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--trimr-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.action-link:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
    border-color: var(--trimr-purple);
    color: var(--trimr-purple-dark);
    transform: translateX(4px);
}

.action-link svg {
    transition: transform 0.2s ease;
}

.action-link:hover svg {
    transform: translateX(2px);
}

/* Report Section */
.report-section {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 12px;
}

.report-section h2 {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .filter-group.actions {
        grid-column: 1 / -1;
        min-width: 100%;
    }
    
    .admin-content {
        padding: 20px;
    }
}

/* Sidebar Backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

@media (min-width: 769px) {
    .sidebar-toggle {
        display: none;
    }
    
    .sidebar-backdrop {
        display: none !important;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 240px;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .topbar {
        height: 56px;
        padding: 0 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .admin-content {
        padding: 16px;
    }
    
    .user-details {
        display: none;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .dashboard-actions {
        flex-direction: column;
    }
    
    .action-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 0 12px;
    }
    
    .admin-content {
        padding: 12px;
    }
    
    .stat-card {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stat-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .stat-value {
        font-size: 24px;
    }
}

    .sidebar-toggle {
        display: block;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .filter-group.actions {
        min-width: 100%;
    }
    
    .filter-group.actions .btn {
        flex: 1;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SALON DETAIL HEADER
   ============================================================ */

.salon-detail-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.salon-detail-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.salon-detail-title-section {
    flex: 1;
    min-width: 0;
}

.salon-detail-title-section h1 {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.salon-detail-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.salon-detail-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.salon-detail-actions .btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .salon-detail-header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .salon-detail-actions {
        width: 100%;
    }
    
    .salon-detail-actions .btn {
        flex: 1;
    }
}

/* ============================================================
   MODERN SALON FORM DESIGN
   ============================================================ */

.salon-form-container {
    max-width: 1400px;
    margin: 0 auto;
}

.modern-form {
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Main Form Grid - Two Column Layout */
.form-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px 24px 24px 0px;
}

/* Form Column */
.form-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form Section */
.form-section {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.form-section:hover {
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.form-section-header h2 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--trimr-purple);
    color: white;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Form Fields Grid */
.form-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.form-field .required {
    color: var(--error);
    margin-left: 2px;
}

.search-input-wrapper {
    position: relative;
}

/* Accordion Styles */
.form-accordion-section {
    margin: 0 24px 24px 24px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.form-accordion-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--bg-light);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-light);
}

.accordion-header:hover {
    background: #F8F9FA;
}

.accordion-header.accordion-open {
    border-bottom-color: var(--border-color);
}

.accordion-header-content {
    flex: 1;
}

.accordion-header-content h2 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
}

.accordion-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: 12px;
}

.accordion-toggle:hover {
    background: rgba(124, 58, 237, 0.1);
}

.accordion-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.accordion-header.accordion-open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 20px;
    background: var(--bg-white);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hours Container */
.hours-container {
    padding: 8px 0;
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-row {
    display: grid;
    grid-template-columns: 160px 1fr 100px;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 6px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.hours-row:hover {
    border-color: var(--border-color);
    background: #FAFBFC;
}

.hours-day {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hours-day label {
    margin: 0;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
}

.day-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--trimr-purple);
}

.hours-time {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hours-separator {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.hours-input {
    width: 110px;
    padding: 6px 10px;
    font-size: 13px;
}

.hours-input:disabled {
    background: var(--bg-light);
    opacity: 0.6;
    cursor: not-allowed;
}

.hours-status {
    text-align: right;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-open {
    background: #ECFDF5;
    color: var(--success);
}

.status-closed {
    background: #FEF2F2;
    color: var(--error);
}

/* Services Container */
.services-container {
    padding: 8px 0;
}

.services-table-wrapper {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    font-size: 13px;
}

.services-table thead {
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
}

.services-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.services-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s ease;
}

.services-table tbody tr:hover {
    background: var(--bg-light);
}

.services-table tbody tr:last-child {
    border-bottom: none;
}

.category-header-row {
    background: var(--bg-light) !important;
    border-bottom: 2px solid var(--border-color) !important;
}

.category-header-row td {
    padding: 14px 16px !important;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.service-row td {
    padding: 12px 16px;
    vertical-align: middle;
}

.service-name {
    font-size: 13px;
    color: var(--text-primary);
}

.service-indicator {
    color: var(--text-muted);
    margin-right: 8px;
    font-size: 14px;
}

.service-typical-price {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.service-price-input-cell,
.service-duration-input-cell {
    padding: 8px 16px !important;
}

.price-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0 10px;
    width: fit-content;
}

.currency-symbol {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
}

.service-price-input {
    border: none;
    padding: 6px 0;
    width: 90px;
    font-size: 13px;
    background: transparent;
}

.service-price-input:focus {
    outline: none;
    box-shadow: none;
}

.duration-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0 10px;
    width: fit-content;
}

.service-duration-input {
    border: none;
    padding: 6px 0;
    width: 60px;
    font-size: 13px;
    background: transparent;
}

.service-duration-input:focus {
    outline: none;
    box-shadow: none;
}

.duration-unit {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
}

.service-status-cell {
    padding: 8px 16px !important;
}

.service-status-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.service-active-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--success);
}

.service-status-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.services-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.services-empty-state p {
    font-size: 13px;
    margin: 0;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.form-actions .btn {
    min-width: 120px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .form-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .salon-form-container {
        margin: 0;
    }
    
    .modern-form {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .form-main-grid {
        padding: 16px;
        gap: 16px;
    }
    
    .form-section {
        padding: 16px;
    }
    
    .form-fields-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-accordion-section {
        margin: 0 16px 16px 16px;
    }
    
    .accordion-content {
        padding: 16px;
    }
    
    .hours-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .hours-time {
        justify-content: flex-start;
    }
    
    .hours-status {
        text-align: left;
    }
    
    .services-table-wrapper {
        overflow-x: scroll;
    }
    
    .form-actions {
        flex-direction: column;
        padding: 16px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}