:root {
    --primary: #0f172a; /* Slate 900 */
    --primary-hover: #1e293b; /* Slate 800 */
    --accent: #d946ef; /* Fuchsia 500 - slightly softer salon vibe */
    --accent-hover: #c026d3; /* Fuchsia 600 */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-secondary: #f8fafc;
    --border: #e2e8f0;
    --border-focus: #d946ef;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Layout */
.split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Hero Section (Left) */
.hero-section {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    position: relative;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    overflow: hidden;
}

/* Decorative background blur */
.hero-overlay {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.4) 0%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    z-index: 0;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    margin-bottom: auto; /* Pushes content down */
    margin-top: 2rem;
    color: white;
}

.hero-text {
    margin: 4rem 0;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-text p {
    font-size: 1.125rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.testimonial {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-top: auto; /* Pushes testimonial down */
    margin-bottom: 2rem;
}

.stars {
    color: #fbbf24;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.quote {
    font-size: 1rem;
    font-style: italic;
    color: #e2e8f0;
    margin-bottom: 1.25rem;
}

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

.avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: #d946ef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
}

.author-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.author-info span {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Form Section (Right) */
.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
    max-width: 600px;
    width: 100%;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.5s ease-out;
}

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

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Social Button */
.btn-social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid var(--border);
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-social:hover {
    background: var(--bg-secondary);
    border-color: #cbd5e1;
}

.btn-social:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider span {
    padding: 0 1rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
    transition: all 0.2s ease;
    background: #fff;
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:hover {
    border-color: #cbd5e1;
}

.form-group input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.1);
}

.password-input {
    position: relative;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.btn-toggle-password:hover {
    color: #475569;
}

.btn-toggle-password:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
    border-radius: 4px;
}

.password-strength {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Submit Button */
.btn-primary {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-primary:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive Variables */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
    }
    
    .hero-section {
        flex: none;
        padding: 2.5rem 1.5rem;
        min-height: auto;
    }
    
    .logo {
        margin-top: 0;
        margin-bottom: 2rem;
    }
    
    .hero-text {
        margin: 0 0 2rem 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .testimonial {
        margin-bottom: 0;
        margin-top: 0;
    }
    
    .form-section {
        max-width: 100%;
        padding: 2.5rem 1.5rem;
        align-items: flex-start;
    }
    
    .form-wrapper {
        margin: 0 auto;
    }
}

/* Company Settings Layout */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 4rem;
}

.settings-section {
    display: flex;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.settings-section:last-child {
    border-bottom: none;
}

/* Left Column: Descriptions */
.settings-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.settings-sidebar h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.settings-sidebar p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* Right Column: Forms */
.settings-form {
    flex-grow: 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

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

/* Form Elements Styling (Premium Look) */
.settings-form .form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #475569;
}

.settings-form .form-input,
.settings-form .form-select,
.settings-form .form-textarea {
    width: 100%;
    font-size: 0.95rem;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.settings-form .form-input:focus,
.settings-form .form-select:focus,
.settings-form .form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-form .form-textarea {
    resize: vertical;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}

/* Form Grids (for equal side-by-side inputs) */
.settings-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Logo Upload Custom UI */
.logo-upload-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-preview {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-placeholder {
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upload-hint {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

/* Sticky Footer */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 260px; /* Offset sidebar width */
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid #e2e8f0;
    padding: 1rem 2.5rem;
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Class added via JS when changes are detected */
.sticky-footer.show {
    transform: translateY(0);
}

.sticky-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.unsaved-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unsaved-text::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #f59e0b;
}

.sticky-actions {
    display: flex;
    gap: 12px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .settings-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .settings-sidebar {
        width: 100%;
    }
    
    .sticky-footer {
        left: 0; /* Sidebar is hidden on mobile */
    }
}

@media (max-width: 640px) {
    .settings-form .form-grid {
        grid-template-columns: 1fr;
    }
    
    .sticky-footer-content {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .sticky-actions {
        width: 100%;
    }
    
    .sticky-actions .btn {
        flex: 1;
    }
}

/* Branches Layout Details */

/* Table Adjustments */
.table-container {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.status-active::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #22c55e;
}

.status-inactive {
    background-color: #f1f5f9;
    color: #475569;
}

.status-inactive::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #94a3b8;
}

/* Action Buttons */
.action-btn-group {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.action-btn {
    background: none;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

.action-btn.delete:hover {
    color: #ef4444;
    border-color: #fecaca;
    background: #fef2f2;
}

/* Slide-out Panel Overlay */
.side-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-panel-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Slide-out Panel Container */
.side-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 500px; /* Modern sidebar width */
    height: 100vh;
    background: #ffffff;
    z-index: 1001;
    box-shadow: -8px 0 24px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-panel.open {
    transform: translateX(0);
}

/* Panel Header */
.side-panel-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #f8fafc;
}

.side-panel-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

/* Panel Body */
.side-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.panel-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f1f5f9;
}

.panel-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Operating Hours Toggle UI */
.hours-row {
    display: grid;
    grid-template-columns: 100px 60px 1fr;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.day-label {
    font-weight: 500;
    color: #475569;
    font-size: 0.95rem;
}

.hours-times {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.hours-times.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.time-input {
    width: 110px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #f8fafc;
}

.closed-text {
    color: #94a3b8;
    font-size: 0.85rem;
    font-style: italic;
}

/* Modern Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .slider {
    background-color: #10b981;
}

input:focus + .slider {
    box-shadow: 0 0 1px #10b981;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Big Status Toggle area */
.status-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

/* Panel Footer */
.side-panel-footer {
    padding: 20px 32px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8fafc;
}

