/* 
 * Elite Auto Repair Dashboard - Modern CSS Framework
 * Version 2.0
 * Typography: Poppins (Headings) + Inter (Body)
 */

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand Colors */
    --brand-primary: #e60000;
    --brand-primary-dark: #b30000;
    --brand-primary-light: #ff3333;
    
    /* Neutral Colors */
    --color-dark: #091629;
    --color-dark-lighter: #1e293b;
    --color-dark-accent: #334155;
    --color-gray: #64748b;
    --color-gray-light: #cbd5e1;
    --color-gray-lighter: #e2e8f0;
    --color-white: #ffffff;
    --color-background: #f1f5f9;
    
    /* Status Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --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-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px 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);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-background);
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-4);
    color: var(--color-dark);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-4);
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-primary-dark);
}

/* ========================================
   LAYOUT
   ======================================== */

.app-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--color-background);
}

.sidebar {
    width: 235px;
    background: #1e293b;
    color: var(--color-white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform var(--transition-base);
    display: flex;
    flex-direction: column;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.main-content {
    flex: 1;
    margin-left: 240px;
    transition: margin-left var(--transition-base);
}

.main-content.expanded {
    margin-left: 0;
}

.topbar {
    background: var(--color-white);
    padding: 5px 0;
    border-bottom: 1px solid var(--color-gray-lighter);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.content-wrapper {
    padding: var(--space-6);
}

/* ========================================
   SIDEBAR STYLES
   ======================================== */

.sidebar-logo {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sidebar-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.sidebar-search {
    padding: 1rem 1rem 0.5rem;
    position: relative;
}

.sidebar-search i {
    position: absolute;
    left: 1.75rem;
    top: 1.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

.sidebar-search input {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.sidebar-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.sidebar-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #3b82f6;
}

.sidebar-menu-label {
    padding: 1rem 1rem 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-menu {
    list-style: none;
    padding: 0.5rem 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu-item {
    margin: 0 1rem 0.25rem;
}

.sidebar-menu-link {
	display: flex;
	align-items: center;
	padding: 6px 10px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 12px;
	transition: all 0.2s ease;
	position: relative;
	border-radius: 10px;
	font-weight: 500;
}

.sidebar-menu-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-white);
}

.sidebar-menu-link.active {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    font-weight: 600;
}

.sidebar-menu-link i {
    width: 20px;
    margin-right: 0.875rem;
    font-size: 1rem;
    text-align: center;
}

.sidebar-menu-link .badge {
    margin-left: auto;
    background: #dc2626;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

.sidebar-menu-item.has-submenu > .sidebar-menu-link::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.sidebar-menu-item.has-submenu.active > .sidebar-menu-link::after {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-radius: 8px;
    margin: 0.5rem 0 0 0;
}

.sidebar-menu-item.has-submenu.active .sidebar-submenu {
    max-height: 600px;
    padding: 0.5rem 0;
}

.sidebar-submenu li {
    padding: 0 0.75rem;
}

.sidebar-submenu-link {
	display: flex;
	align-items: center;
	padding: 8px 0px 8px 35px !important;
	color: rgba(255, 255, 255, 0.65);
	font-size: 12px;
	transition: all 0.2s ease;
	border-radius: 6px;
	position: relative;
	padding-left: 2.5rem;
}
.sidebar-submenu-link::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.sidebar-submenu-link:hover {
    color: var(--color-white);
    padding-left: 2.75rem;
}

.sidebar-submenu-link:hover::before {
    width: 6px;
    height: 6px;
    background: #3b82f6;
}

.sidebar-submenu-link.active {
    color: #60a5fa;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.12);
}

.sidebar-submenu-link.active::before {
    background: #3b82f6;
    width: 6px;
    height: 6px;
}

.sidebar-submenu-link i {
    display: none;
}

.sidebar-divider {
    padding: 1rem 1rem 0.5rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-divider span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* User Profile Footer */
.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.sidebar-user:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.125rem;
}

.sidebar-user-logout {
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-user-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ========================================
   TOPBAR STYLES
   ======================================== */

.topbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex: 1;
}

.menu-toggle {
	background: none;
	border: none;
	color: var(--color-dark);
	font-size: 15px;
	cursor: pointer;
	padding: var(--space-2);
	border-radius: var(--radius-md);
	transition: background-color var(--transition-fast);
}

.menu-toggle:hover {
    background-color: var(--color-gray-lighter);
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-bar input {
	width: 100%;
	padding: 10px 35px;
	border: 1px solid var(--color-gray-lighter);
	border-radius: var(--radius-lg);
	font-size: 12px;
	background-color: var(--color-background);
	transition: all var(--transition-fast);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--brand-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
}

.search-bar i {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray);
    pointer-events: none;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background-color: var(--brand-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.topbar-btn:hover {
    background-color: var(--brand-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.topbar-btn.btn-secondary {
    background-color: var(--color-success);
}

.topbar-btn.btn-secondary:hover {
    background-color: #059669;
}

.notification-badge {
    position: relative;
    padding: var(--space-2);
    color: var(--color-dark);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.notification-badge:hover {
    background-color: var(--color-gray-lighter);
}

.notification-badge .badge-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--brand-primary);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.user-menu:hover {
    background-color: var(--color-gray-lighter);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--text-sm);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    font-size: 13px;
    color: var(--color-dark);
}

.user-role {
    font-size: 10px;
    color: var(--color-gray);
}

/* ========================================
   CARDS & CONTAINERS
   ======================================== */

.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-gray-lighter);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--color-dark);
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--color-gray);
    margin: 0;
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-4) var(--space-6);
    background-color: var(--color-background);
    border-top: 1px solid var(--color-gray-lighter);
}

/* ========================================
   STATS CARDS
   ======================================== */

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--space-5);
	margin-bottom: var(--space-6);
}
.stat-card {
	background: var(--color-white);
	padding: 10px 20px;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	border-left: 4px solid var(--brand-primary);
	transition: all var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card.stat-success {
    border-left-color: var(--color-success);
}

.stat-card.stat-warning {
    border-left-color: var(--color-warning);
}

.stat-card.stat-info {
    border-left-color: var(--color-info);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    background-color: rgba(230, 0, 0, 0.1);
    color: var(--brand-primary);
}

.stat-card.stat-success .stat-icon {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.stat-card.stat-warning .stat-icon {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.stat-card.stat-info .stat-icon {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-info);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-gray);
    font-weight: 500;
}

.stat-footer {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-gray-lighter);
    font-size: var(--text-xs);
    color: var(--color-gray);
}

/* ========================================
   TABLES
   ======================================== */

.table-container {
    overflow-x: auto;
    margin-top: var(--space-4);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    font-size: 11px;
}

.data-table thead {
    background-color: var(--color-background);
}

.data-table th {
    padding: var(--space-4) var(--space-5);
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-gray);
    border-bottom: 2px solid var(--color-gray-lighter);
}

.data-table td {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-gray-lighter);
}

.data-table tbody tr {
    transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover {
    background-color: var(--color-background);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-primary {
    background-color: rgba(230, 0, 0, 0.1);
    color: var(--brand-primary);
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}

.badge-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-info);
}

.badge-secondary {
    background-color: var(--color-gray-lighter);
    color: var(--color-gray);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: 5px 12px;
	border: none;
	border-radius: var(--radius-md);
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: all var(--transition-fast);
	text-decoration: none;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--brand-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--brand-primary-dark);
}

.btn-secondary {
    background-color: var(--color-dark-accent);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-dark-lighter);
}

.btn-success {
    background-color: var(--color-success);
    color: var(--color-white);
}

.btn-success:hover {
    background-color: #059669;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-gray-lighter);
    color: var(--color-dark);
}

.btn-outline:hover {
    background-color: var(--color-background);
    border-color: var(--color-gray);
}

.btn-sm {
    padding:7px 10px;
    font-size: var(--text-xs);
}

.btn-lg {
	padding: 10px 15px;
	font-size: 12px;
}
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-md);
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    font-size: 11px;
    color: var(--color-dark);
}

.form-label.required::after {
    content: '*';
    color: var(--color-danger);
    margin-left: var(--space-1);
}
.radio-inline span {
	font-size: 12px;
}

.form-control {
    width: 100%;
    padding:10px 10px;
    border: 1px solid var(--color-gray-lighter);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 12px;
    transition: all var(--transition-fast);
    background-color: var(--color-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
}

.form-control:disabled {
    background-color: var(--color-gray-lighter);
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    background-size: 20px;
    padding-right: 2.5rem;
    appearance: none;
}

.form-help {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-gray);
}

.form-error {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-danger);
}

/* Form Grid */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-5);
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--color-success);
    color: #065f46;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--color-danger);
    color: #991b1b;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--color-warning);
    color: #92400e;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--color-info);
    color: #1e40af;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    justify-content: center;
    margin-top: var(--space-6);
}

.pagination-btn {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-gray-lighter);
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: var(--text-sm);
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--color-background);
    border-color: var(--color-gray);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background-color: var(--brand-primary);
    color: var(--color-white);
    border-color: var(--brand-primary);
}

/* ========================================
   UTILITIES
   ======================================== */

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

/* Text */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--brand-primary); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.text-info { color: var(--color-info); }
.text-muted { color: var(--color-gray); }

.font-bold { font-weight: 600; }
.font-semibold { font-weight: 500; }
.font-normal { font-weight: 400; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flex */
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .sidebar {
        width: 260px;
    }
    
    .main-content {
        margin-left: 260px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .topbar-container {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .user-info {
        display: none;
    }
    
    .table-container {
        font-size: var(--text-xs);
    }
    
    .data-table th,
    .data-table td {
        padding: var(--space-2) var(--space-3);
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: var(--space-4);
    }
    
    .topbar {
        padding: var(--space-3) var(--space-4);
    }
    
    .card-header,
    .card-body,
    .card-footer {
        padding: var(--space-4);
    }
    
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }
}

/* ========================================
   LOADING & ANIMATIONS
   ======================================== */

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    border-top-color: var(--color-white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
body {
    padding:0 !important;
    font-family: Inter, sans-serif !important;
}

.table.table-hover.table-sm {
	vertical-align: middle;
}

.content-wrapper .mb-2, .content-wrapper .mb-0, .page-title {
	font-size: 15px;
}

table.smallfonts td, table.smallfonts th {
	font-size: 13px;
}

.table.table-striped.table-hover td, .table.table-striped.table-hover th {
	font-size: 12px;
}

.table > :not(caption) > * > *{
    font-size: 12px;
}
  body .content-wrapper {
        margin-left: 0;
    }
    .stats-card { border-left: 4px solid #007bff; transition: transform 0.2s; }
    .stats-card:hover { transform: translateY(-5px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
    .stats-card.pending { border-left-color: #ffc107; }
    .stats-card.confirmed { border-left-color: #28a745; }
    .stats-card.completed { border-left-color: #17a2b8; }
    .stats-card.cancelled { border-left-color: #dc3545; }
    .badge-pending { background-color: #ffc107; color: #000; }
    .badge-confirmed { background-color: #28a745; }
    .badge-completed { background-color: #17a2b8; }
    .badge-cancelled { background-color: #dc3545; }
    .filter-card { background-color: #f8f9fa; border-radius: 10px; margin-bottom: 20px; }
    .booking-table { background: white; border-radius: 10px; overflow: hidden; }
    .action-btn { padding: 5px 10px; font-size: 0.875rem; }


    /* Blinking animation for license notification icon */
#licenseNotificationBtn .fa-exclamation-triangle {
    animation: blinkLicense 2.5s infinite;
}

@keyframes blinkLicense {
    0%, 33% {
        color: #dc2626;
        text-shadow: 0 0 10px #dc2626, 0 0 20px #dc2626;
    }
    34%, 66% {
        color: #fbbf24;
        text-shadow: 0 0 10px #fbbf24, 0 0 20px #fbbf24;
    }
    67%, 100% {
        color: #a855f7;
        text-shadow: 0 0 10px #a855f7, 0 0 20px #a855f7;
    }
}

/* Pulse animation for the badge */
#licenseNotificationBtn .badge-count {
    animation: pulseBadge 2.5s infinite;
}

@keyframes pulseBadge {
    0%, 33% {
        transform: scale(1);
        background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    }
    34%, 66% {
        transform: scale(1.15);
        background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    }
    67%, 100% {
        transform: scale(1);
        background: linear-gradient(135deg, #a855f7, #9333ea) !important;
    }
}

/* Birthday notification styles */
.birthday-icon {
    pointer-events: none;
}

.birthday-notification .fa-birthday-cake {
    color: #ff69b4;
    animation: birthdayBounce 1.5s infinite;
}

@keyframes birthdayBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(-10deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(10deg);
    }
}

.badge-birthday {
    background: linear-gradient(135deg, #ff69b4, #ff1493) !important;
    animation: birthdayPulse 1.5s infinite;
}

@keyframes birthdayPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 20px rgba(255, 105, 180, 0.8);
    }
}

.birthday-notification-menu {
    min-width: 350px;
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.birthday-notification-menu.active {
    display: block;
}

.license-notification-menu {
    min-width: 350px;
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.license-notification-menu.active {
    display: block;
}

.birthday-notification-menu .notification-header {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
}

.birthday-item {
    border-left: 4px solid #ff69b4 !important;
    background: linear-gradient(to right, #fff5fb, white);
}

.birthday-item:hover {
    background: linear-gradient(to right, #ffe4f3, #fff5fb);
}

.birthday-item .notification-icon {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
}

.birthday-item .notification-icon i {
    animation: giftShake 2s infinite;
}

@keyframes giftShake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-5deg); }
    20%, 40%, 60%, 80% { transform: rotate(5deg); }
}

/* Birthday Modal Popup Styles */
.birthday-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.birthday-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.birthday-modal-content {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    margin: 5vh auto;
    background: linear-gradient(135deg, #fff5fb, #ffffff);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.4);
    overflow: auto;
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.birthday-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.birthday-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.5);
}

.birthday-modal-body {
    padding: 40px;
}

.birthday-gif-container {
    text-align: center;
    margin-bottom: 30px;
}

.birthday-gif {
    max-width: 400px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.birthday-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.birthday-user-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.birthday-user-card:hover {
    transform: translateY(-5px);
    border-color: #ff69b4;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
}

.birthday-user-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ff69b4;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.birthday-user-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.birthday-user-initials {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    font-size: 48px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.birthday-user-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.birthday-user-age {
    font-size: 16px;
    color: #ff69b4;
    font-weight: 600;
    margin: 8px 0;
}

.birthday-user-dob {
    font-size: 14px;
    color: #666;
    margin: 8px 0;
}

.birthday-user-dob i {
    color: #ff69b4;
}

.birthday-user-username {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .birthday-modal-content {
        margin: 2vh;
        max-height: 96vh;
    }
    
    .birthday-modal-body {
        padding: 20px;
    }
    
    .birthday-gif {
        max-width: 100%;
    }
    
    .birthday-users-grid {
        grid-template-columns: 1fr;
    }
}

/* Lottie Popup Modal Styles */
.lottie-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.lottie-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
}

.lottie-popup-content {
    position: relative;
    max-width: 480px;
    width: 90%;
    margin: 10vh auto;
    background: linear-gradient(135deg, #ffffff, #f8f9ff);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: lottiePopupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lottiePopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-60px) scale(0.88);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lottie-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: #192232;
    color: white;
    font-size: 22px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    line-height: 1;
}

.lottie-popup-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.5);
}

.lottie-popup-body {
    padding: 40px 35px 35px;
    text-align: center;
}

.lottie-popup-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.lottie-popup-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e1e2e;
    margin: 0 0 6px;
}

.lottie-popup-subtitle {
    font-size: 14px;
    color: #888;
    margin: 0 0 28px;
}

.lottie-popup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.lottie-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 14px;
    background: white;
    border: 2px solid #f0f0f8;
    border-radius: 14px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lottie-action-btn i {
    font-size: 22px;
    background: linear-gradient(135deg, var(--brand-primary, #6366f1), var(--brand-primary-dark, #4f46e5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lottie-action-btn:hover {
    transform: translateY(-4px);
    border-color: var(--brand-primary, #6366f1);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.18);
    color: var(--brand-primary, #6366f1);
    text-decoration: none;
}

@media (max-width: 480px) {
    .lottie-popup-actions {
        grid-template-columns: 1fr 1fr;
    }
    .lottie-popup-body {
        padding: 30px 20px 25px;
    }
}

.somepadding{
    padding: 15px;
}

/* ========================================
   ESTIMATE PAGE - Type Selection Buttons
   ======================================== */
.estimate-type-btn {
	padding: 3px 10px;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 600;
	color: #555;
	transition: all 0.2s ease;
}

.estimate-type-btn i {
	font-size: 0.9rem;
	color: #aaa;
	transition: color 0.2s ease;
}

.estimate-type-btn:hover {
    border-color: var(--brand-primary, #6366f1);
    color: var(--brand-primary, #6366f1);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
    transform: translateY(-2px);
}

.estimate-type-btn:hover i {
    color: var(--brand-primary, #6366f1);
}

.estimate-type-btn.active {
    border-color: var(--brand-primary, #6366f1);
    background: linear-gradient(135deg, var(--brand-primary, #6366f1), var(--brand-primary-dark, #4f46e5));
    color: #fff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.3);
}

.estimate-type-btn.active i {
    color: #fff;
}

/* ========================================
   ESTIMATE PAGE - Appointment Detail Panel
   ======================================== */
.appt-detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    color: #bbb;
    gap: 12px;
}

.appt-detail-empty i {
    font-size: 2.5rem;
    color: #ddd;
}

.appt-detail-empty p {
    font-size: 0.875rem;
    margin: 0;
}

.appt-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.appt-detail-section {
    background: #f9fafb;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 16px;
}

.appt-detail-section.appt-detail-full {
    grid-column: 1 / -1;
}

.appt-detail-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-primary, #6366f1);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.appt-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.835rem;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
    gap: 10px;
}

.appt-detail-row:last-child {
    border-bottom: none;
}

.appt-detail-row span {
    color: #888;
    flex-shrink: 0;
    min-width: 100px;
}

.appt-detail-row strong {
    color: #222;
    text-align: right;
    word-break: break-word;
}

@media (max-width: 768px) {
    .appt-detail-grid {
        grid-template-columns: 1fr;
    }
    .appt-detail-section.appt-detail-full {
        grid-column: 1;
    }
}

/* ========================================
   ESTIMATE PAGE - Professional Estimate Doc
   ======================================== */

.estimate-doc {
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
}

/* Header */
.estimate-doc-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
  
    flex-wrap: wrap;
    gap: 16px;
}

.estimate-doc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.estimate-doc-logo {
    object-fit: contain;
}

.estimate-doc-company {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.estimate-doc-logo span {
	font-size: 1rem;
	font-weight: 900;
	color: #1a1a2e;
	text-transform: uppercase;
}

.estimate-doc-company small {
    font-size: 0.78rem;
    color: #888;
}

.estimate-doc-meta {
    text-align: right;
}

.estimate-doc-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    color:#1e293b;
}

.estimate-doc-meta-rows {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.estimate-meta-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    font-size: 0.82rem;
}

.estimate-meta-row span {
}

.estimate-meta-row strong {
    color: #222;
    text-align: right;
}

.estimate-status-badge {
    background: #192232;
    color: #fff;
    font-size: 0.72rem;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: capitalize;
}

/* Info blocks row */
.estimate-doc-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.estimate-info-block {
    background: #f9fafb;
    border: 1px solid #eef0f8;
    border-radius: 10px;
    padding: 14px 16px;
}

.estimate-info-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.estimate-info-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.estimate-info-sub {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 2px;
}

/* Section title */
.estimate-doc-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1e293b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tables */
.estimate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.estimate-table thead tr {
    background: #1e293b;
    color: #fff;
}

.estimate-table thead th {
	padding: 9px 12px;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-align: left;
	font-weight: 800;
}
.estimate-table tbody tr {
    border-bottom: 1px solid #f0f0f8;
    transition: background 0.15s;
}

.estimate-table tbody tr:hover {
    background: #f9f9ff;
}

.estimate-table tbody td {
    padding: 5px 12px;
    vertical-align: middle;
    font-weight: 500;
}

.estimate-line-total {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

/* Inputs inside table */
.estimate-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 0.83rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}

.estimate-input:focus {
    border-color: var(--brand-primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.estimate-input-sm {
    width: 80px;
}

.estimate-remove-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    font-size: 0.85rem;
}

.estimate-remove-btn:hover {
    color: #e74c3c;
    background: #fff5f5;
}

/* Add line button */
.estimate-table-actions {
    margin: 8px 0 0;
}

.estimate-add-btn {
    background: none;
    border: 1px dashed var(--brand-primary, #6366f1);
    color: var(--brand-primary, #6366f1);
    font-size: 0.82rem;
    padding: 5px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.estimate-add-btn:hover {
    background: var(--brand-primary, #6366f1);
    color: #fff;
}

/* Totals */
.estimate-totals {
    margin-top: 16px;
    margin-left: auto;
    width: 280px;
    background: #f9fafb;
    border: 1px solid #eef0f8;
    border-radius: 10px;
    padding: 14px 18px;
}

.estimate-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
    gap: 10px;
}

.estimate-totals-row:last-child {
    border-bottom: none;
}

.estimate-totals-row span {
    color: #888;
}

.estimate-totals-grand {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 4px;
    padding-top: 8px;
}

.estimate-totals-grand span {
    color: #1a1a2e !important;
}

.estimate-totals-grand strong {
    color: var(--brand-primary, #6366f1);
    font-size: 1.1rem;
}

/* Notes */
.estimate-notes {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    color: #444;
    margin-top: 4px;
}

.estimate-notes:focus {
    border-color: var(--brand-primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

/* Action buttons */
.estimate-doc-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid #f0f0f8;
}

@media (max-width: 900px) {
    .estimate-doc-info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .estimate-doc-header {
        flex-direction: column;
    }
    .estimate-doc-meta {
        text-align: left;
    }
    .estimate-doc-meta-rows .estimate-meta-row {
        justify-content: flex-start;
    }
    .estimate-doc-info {
        grid-template-columns: 1fr;
    }
    .estimate-totals {
        width: 100%;
    }
}

@media print {
    .estimate-doc-actions,
    .estimate-add-btn,
    .estimate-remove-btn,
    .sidebar, .topbar, .col-4 {
        display: none !important;
    }
    .estimate-doc {
        padding: 0;
    }
}


.estimate-doc-section-title.bgtitle {
	background: #1e293b;
	color: #fff;
	padding: 9px 10px;
}

.estimate-table {
	margin: 25px 0 0;
}
.estimate-table tbody tr:last-child {
	border: none;
}
