/* ============================================================
   LANIYA LADIES TAILOR - MASTER CUSTOM STYLESHEET
   Signature Purple/Violet Modern Theme
   ============================================================ */

:root {
    --primary-purple: #6f42c1;
    --primary-dark-purple: #593196;
    --primary-deep: #3a1c71;
    --accent-light: #f4f3f9;
    --card-bg: #ffffff;
    --text-main: #2b2d42;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --purple-gradient: linear-gradient(135deg, #6f42c1 0%, #593196 100%);
    --accent-gradient: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    --card-shadow: 0 10px 30px rgba(111, 66, 193, 0.08);
    --hover-shadow: 0 15px 35px rgba(111, 66, 193, 0.15);
    --border-radius: 16px;
    --border-radius-sm: 10px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f7f7fb;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Typography & Links */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #1a1d20;
}
a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: all 0.2s ease;
}
a:hover {
    color: var(--primary-dark-purple);
}

/* Purple Buttons & Badges */
.btn-purple {
    background: var(--purple-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.25);
    transition: all 0.3s ease;
}
.btn-purple:hover, .btn-purple:focus {
    background: linear-gradient(135deg, #593196 0%, #3a1c71 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
    transform: translateY(-2px);
}
.btn-outline-purple {
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-purple:hover {
    background: var(--primary-purple);
    color: #ffffff;
    transform: translateY(-2px);
}

.bg-purple {
    background-color: var(--primary-purple) !important;
    color: white;
}
.bg-purple-light {
    background-color: #f0ebf8 !important;
    color: var(--primary-purple) !important;
}
.bg-orange {
    background-color: #fd7e14 !important;
    color: white;
}
.bg-teal {
    background-color: #20c997 !important;
    color: white;
}

/* Layout Shell */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
}

#sidebar {
    min-width: 240px;
    max-width: 240px;
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}
#sidebar.collapsed {
    min-width: 76px;
    max-width: 76px;
}
#sidebar.collapsed .sidebar-header span,
#sidebar.collapsed .sidebar-menu span,
#sidebar.collapsed .menu-header {
    display: none !important;
}
#sidebar.collapsed .sidebar-header {
    padding: 16px 12px;
    justify-content: center;
}
#sidebar.collapsed .sidebar-menu li a {
    justify-content: center;
    padding: 12px;
}
#sidebar.collapsed .brand-logo {
    justify-content: center;
}

.sidebar-header {
    padding: 20px 18px;
    border-bottom: 1px solid var(--border-color);
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-deep);
}
.brand-icon-wrapper {
    width: 40px;
    height: 40px;
    background: var(--purple-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
    flex-shrink: 0;
}

/* Sidebar Navigation Items */
.sidebar-menu {
    padding: 12px 10px;
    list-style: none;
    margin: 0;
}
.menu-header {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #a0aec0;
    padding: 10px 14px 4px;
    letter-spacing: 0.8px;
}
.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    margin-bottom: 3px;
    transition: all 0.2s ease;
}
.sidebar-menu li a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: #718096;
    transition: all 0.2s ease;
}
.sidebar-menu li a:hover {
    background-color: #f4f1fa;
    color: var(--primary-purple);
}
.sidebar-menu li a:hover i {
    color: var(--primary-purple);
}
.sidebar-menu li.active a {
    background: var(--purple-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.25);
}
.sidebar-menu li.active a i {
    color: #ffffff;
}

/* Content Area */
#content {
    width: 100%;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.top-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-profile-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.avatar-circle {
    width: 36px;
    height: 36px;
    background: var(--purple-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Cards & UI Controls */
.card-custom {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    margin-bottom: 24px;
}
.card-custom:hover {
    box-shadow: var(--hover-shadow);
}
.card-header-custom {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Dashboard Metric Cards */
.stat-card {
    border-radius: 14px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 86px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.stat-icon.purple { background: rgba(111, 66, 193, 0.12); color: var(--primary-purple); }
.stat-icon.blue { background: rgba(13, 202, 240, 0.12); color: #0dcaf0; }
.stat-icon.green { background: rgba(25, 135, 84, 0.12); color: #198754; }
.stat-icon.orange { background: rgba(253, 126, 20, 0.12); color: #fd7e14; }
.stat-icon.red { background: rgba(220, 53, 69, 0.12); color: #dc3545; }

.stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a1d20;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.stat-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #6c757d;
    line-height: 1.2;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Modern Tables */
.table-custom {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}
.table-custom th {
    background-color: #faf9fd;
    color: #555c68;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 18px;
    border-bottom: 2px solid var(--border-color);
}
.table-custom td {
    padding: 16px 18px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: #333;
}
.table-custom tbody tr:hover {
    background-color: #fbfafd;
}

/* Form Controls & Wizard */
.form-control, .form-select {
    border-radius: var(--border-radius-sm);
    padding: 10px 14px;
    border: 1px solid #dcdfe6;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.15);
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}
.wizard-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}
.wizard-step {
    position: relative;
    z-index: 2;
    background: #f7f7fb;
    padding: 0 10px;
    text-align: center;
}
.wizard-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 8px;
    transition: all 0.3s ease;
}
.wizard-step.active .wizard-icon {
    border-color: var(--primary-purple);
    background: var(--purple-gradient);
    color: #ffffff;
    box-shadow: 0 0 0 5px rgba(111, 66, 193, 0.2);
}
.wizard-step.completed .wizard-icon {
    border-color: #198754;
    background: #198754;
    color: #ffffff;
}

/* Toast Notifications & Modal */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-card {
    animation: fadeIn 0.4s ease forwards;
}

/* Photo & Audio Preview Cards */
.media-preview-box {
    width: 100%;
    height: 120px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fafafa;
    transition: all 0.2s ease;
    overflow: hidden;
    position: relative;
}
.media-preview-box:hover {
    border-color: var(--primary-purple);
    background: #f5f0fb;
}
.media-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
