/* Minimal Global CSS for DMS */
:root {
    --primary: #007AFF;
    --secondary: #5856D6;
    --success: #34C759;
    --warning: #FF9500;
    --danger: #FF3B30;
    --light: #F2F2F7;
    --dark: #1C1C1E;
    --gray: #8E8E93;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --sidebar-width: 220px;
    --sidebar-collapsed: 50px;

    /* Apple-inspired colors */
    --apple-blue: #077BFF;
    --apple-green: #34C759;
    --apple-orange: #FF9500;
    --apple-red: #FF3B30;
    --apple-purple: #AF52DE;
    --apple-pink: #FF2D92;
    --apple-yellow: #FFCC02;
    --apple-gray: #8E8E93;
    --apple-light-gray: #F2F2F7;
    --apple-dark-gray: #1C1C1E;
    --apple-white: #FFFFFF;
    --apple-black: #000000;
    --apple-background: #F5F5F7;
    --apple-card: #FFFFFF;
    --apple-border: #E5E5E7;
    --apple-text: #1D1D1F;
    --apple-text-secondary: #86868B;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--apple-background);
    color: var(--apple-text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid #e5e5e7;
    box-shadow: var(--shadow);
    transition: width 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e5e7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.sidebar-brand-text {
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-brand-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.hamburger-btn {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
}

.hamburger-btn:hover {
    background: rgba(0, 122, 255, 0.1);
}

.sidebar-nav {
    padding: 0;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin: 0;
    padding: 0;
    height: 2.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.75rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: background-color 0.2s ease, padding 0.3s ease, gap 0.3s ease;
    border-left: 2px solid transparent;
    line-height: 1.2;
    height: 2.5rem;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-nav a:hover {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.sidebar-nav a.active {
    background: rgba(0, 122, 255, 0.15);
    color: var(--primary);
    border-left-color: var(--primary);
}

.sidebar-nav i {
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-nav span {
    transition: opacity 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar.collapsed .sidebar-nav span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-nav a {
    justify-content: center;
    padding: 0;
    height: 2.5rem;
    gap: 0;
}

.sidebar.collapsed .sidebar-nav i {
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure consistent spacing and prevent any height variations */
.sidebar-nav li + li {
    margin-top: 0;
}

.sidebar-nav a:focus {
    outline: none;
    box-shadow: none;
}

/* Force consistent height for all menu items */
.sidebar-nav li,
.sidebar-nav a {
    height: 2.5rem !important;
    min-height: 2.5rem !important;
    max-height: 2.5rem !important;
}

/* Override any Bootstrap styles that might interfere */
.sidebar-nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar-nav li {
    margin: 0 !important;
    padding: 0 !important;
    height: 2.5rem !important;
    min-height: 2.5rem !important;
    max-height: 2.5rem !important;
}

.sidebar-nav a {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0 0.75rem !important;
    color: var(--dark) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    transition: background-color 0.2s ease, padding 0.3s ease, gap 0.3s ease !important;
    border-left: 2px solid transparent !important;
    line-height: 1.2 !important;
    height: 2.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: none !important;
    background: none !important;
}

.sidebar-nav a:hover {
    background: rgba(0, 122, 255, 0.1) !important;
    color: var(--primary) !important;
    border-left-color: var(--primary) !important;
    text-decoration: none !important;
}

.sidebar-nav a.active {
    background: rgba(0, 122, 255, 0.15) !important;
    color: var(--primary) !important;
    border-left-color: var(--primary) !important;
    text-decoration: none !important;
}

.sidebar.collapsed .sidebar-nav a {
    justify-content: center !important;
    padding: 0 !important;
    height: 2.5rem !important;
    gap: 0 !important;
}

/* Main Content */
.main-wrapper {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.main-wrapper.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed);
}

.main-content {
    padding: 0.5rem;
    background: var(--apple-background);
    transition: padding 0.3s ease;
}

/* Expanded mode when sidebar is open */
.main-wrapper:not(.sidebar-collapsed) .main-content {
    padding: 1rem;
}



/* Default card spacing (collapsed state) */
.card {
    margin-bottom: 0.5rem;
    transition: margin-bottom 0.3s ease;
}

.card-header {
    padding: 0.75rem;
    transition: padding 0.3s ease;
}

.card-body {
    padding: 0.75rem;
    transition: padding 0.3s ease;
}

.card-footer {
    padding: 0.75rem;
    transition: padding 0.3s ease;
}

/* Expanded mode when sidebar is open */
.main-wrapper:not(.sidebar-collapsed) .card {
    margin-bottom: 1rem;
}

.main-wrapper:not(.sidebar-collapsed) .card-header {
    padding: 1rem;
}

.main-wrapper:not(.sidebar-collapsed) .card-body {
    padding: 1rem;
}

.main-wrapper:not(.sidebar-collapsed) .card-footer {
    padding: 1rem;
}

/* Search Card Consistency for Sidebar Collapsed State */
.main-wrapper.sidebar-collapsed .search-card {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    min-height: auto;
    transition: padding 0.3s ease, margin-bottom 0.3s ease;
}

/* General Search Card Consistency */
.search-card {
    transition: padding 0.3s ease, margin-bottom 0.3s ease;
}

.search-card .form-control,
.search-card .form-select {
    transition: font-size 0.3s ease, padding 0.3s ease, height 0.3s ease, min-height 0.3s ease;
}

.search-card .btn {
    transition: font-size 0.3s ease, padding 0.3s ease, height 0.3s ease, min-height 0.3s ease;
}

.search-card .form-label {
    transition: font-size 0.3s ease, margin-bottom 0.3s ease;
}

/* Ensure consistent search card height */
.search-card {
    min-height: auto;
    display: flex;
    flex-direction: column;
}

.search-card .d-flex {
    align-items: center;
}

.search-card .btn-group {
    align-items: center;
}

/* Force consistent form field heights */
.search-card .form-control,
.search-card .form-select {
    box-sizing: border-box;
}

.search-card .btn {
    box-sizing: border-box;
}

.main-wrapper.sidebar-collapsed .search-card .form-label {
    font-size: 0.6rem;
    margin-bottom: 0.1rem;
}

.main-wrapper.sidebar-collapsed .search-card .form-control,
.main-wrapper.sidebar-collapsed .search-card .form-select {
    font-size: 0.65rem;
    padding: 0.2rem 0.3rem;
    min-height: 24px;
    height: 24px;
}

.main-wrapper.sidebar-collapsed .search-card .btn-sm {
    padding: 0.2rem 0.4rem;
    font-size: 0.65rem;
    min-height: 24px;
    height: 24px;
}

.main-wrapper.sidebar-collapsed .search-card .d-flex {
    gap: 0.25rem;
}

.main-wrapper.sidebar-collapsed .search-card .btn-group {
    gap: 0.25rem;
}

.main-wrapper.sidebar-collapsed .search-card .btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.65rem;
    min-height: 24px;
    height: 24px;
}

.main-wrapper.sidebar-collapsed .search-card .row > div {
    margin-bottom: 0.25rem;
}

.main-wrapper.sidebar-collapsed .search-card .col-md-1,
.main-wrapper.sidebar-collapsed .search-card .col-md-2 {
    padding: 0 0.125rem;
}

.main-wrapper.sidebar-collapsed .search-title {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Default button and form spacing (collapsed state) */
.btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    transition: padding 0.3s ease, font-size 0.3s ease;
}

.form-control {
    padding: 0.5rem;
    font-size: 0.8rem;
    transition: padding 0.3s ease, font-size 0.3s ease;
}

.form-select {
    padding: 0.5rem;
    font-size: 0.8rem;
    transition: padding 0.3s ease, font-size 0.3s ease;
}

/* Expanded mode when sidebar is open */
.main-wrapper:not(.sidebar-collapsed) .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.main-wrapper:not(.sidebar-collapsed) .form-control {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
}

.main-wrapper:not(.sidebar-collapsed) .form-select {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
}

/* Default table spacing (compact state) */
.table th,
.table td {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    transition: padding 0.3s ease, font-size 0.3s ease;
}

/* Expanded mode when sidebar is open */
.main-wrapper:not(.sidebar-collapsed) .table th,
.main-wrapper:not(.sidebar-collapsed) .table td {
    padding: 0.5rem;
    font-size: 0.8rem;
}

/* Ensure all tables use compact styling by default */
.table-sm th,
.table-sm td {
    padding: 0.25rem 0.375rem;
    font-size: 0.7rem;
}

.main-wrapper:not(.sidebar-collapsed) .table-sm th,
.main-wrapper:not(.sidebar-collapsed) .table-sm td {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
}

/* Default alert and badge spacing (collapsed state) */
.alert {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    transition: padding 0.3s ease, margin-bottom 0.3s ease, font-size 0.3s ease;
}

.badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    transition: font-size 0.3s ease, padding 0.3s ease;
}

/* Expanded mode when sidebar is open */
.main-wrapper:not(.sidebar-collapsed) .alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.main-wrapper:not(.sidebar-collapsed) .badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}









/* Default grid spacing (collapsed state) */
.row {
    margin: 0 -0.25rem;
    transition: margin 0.3s ease;
}

.col,
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    padding: 0 0.25rem;
    transition: padding 0.3s ease;
}

/* Expanded mode when sidebar is open */
.main-wrapper:not(.sidebar-collapsed) .row {
    margin: 0 -0.5rem;
}

.main-wrapper:not(.sidebar-collapsed) .col,
.main-wrapper:not(.sidebar-collapsed) .col-1, .main-wrapper:not(.sidebar-collapsed) .col-2, 
.main-wrapper:not(.sidebar-collapsed) .col-3, .main-wrapper:not(.sidebar-collapsed) .col-4, 
.main-wrapper:not(.sidebar-collapsed) .col-5, .main-wrapper:not(.sidebar-collapsed) .col-6,
.main-wrapper:not(.sidebar-collapsed) .col-7, .main-wrapper:not(.sidebar-collapsed) .col-8, 
.main-wrapper:not(.sidebar-collapsed) .col-9, .main-wrapper:not(.sidebar-collapsed) .col-10, 
.main-wrapper:not(.sidebar-collapsed) .col-11, .main-wrapper:not(.sidebar-collapsed) .col-12 {
    padding: 0 0.5rem;
}

/* Default margin and padding utilities (collapsed state) */
.mb-1 { margin-bottom: 0.125rem; }
.mb-2 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.375rem; }
.mb-4 { margin-bottom: 0.5rem; }

.mt-1 { margin-top: 0.125rem; }
.mt-2 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.375rem; }
.mt-4 { margin-top: 0.5rem; }

.p-1 { padding: 0.125rem; }
.p-2 { padding: 0.25rem; }
.p-3 { padding: 0.375rem; }
.p-4 { padding: 0.5rem; }

/* Expanded mode when sidebar is open */
.main-wrapper:not(.sidebar-collapsed) .mb-1 { margin-bottom: 0.25rem; }
.main-wrapper:not(.sidebar-collapsed) .mb-2 { margin-bottom: 0.5rem; }
.main-wrapper:not(.sidebar-collapsed) .mb-3 { margin-bottom: 0.75rem; }
.main-wrapper:not(.sidebar-collapsed) .mb-4 { margin-bottom: 1rem; }

.main-wrapper:not(.sidebar-collapsed) .mt-1 { margin-top: 0.25rem; }
.main-wrapper:not(.sidebar-collapsed) .mt-2 { margin-top: 0.5rem; }
.main-wrapper:not(.sidebar-collapsed) .mt-3 { margin-top: 0.75rem; }
.main-wrapper:not(.sidebar-collapsed) .mt-4 { margin-top: 1rem; }

.main-wrapper:not(.sidebar-collapsed) .p-1 { padding: 0.25rem; }
.main-wrapper:not(.sidebar-collapsed) .p-2 { padding: 0.5rem; }
.main-wrapper:not(.sidebar-collapsed) .p-3 { padding: 0.75rem; }
.main-wrapper:not(.sidebar-collapsed) .p-4 { padding: 1rem; }

/* Table responsive styling */
.main-wrapper.sidebar-collapsed .table-responsive {
    border-radius: 4px;
}

/* Compact form styling */
.main-wrapper.sidebar-collapsed .form-group {
    margin-bottom: 0.5rem;
}

.main-wrapper.sidebar-collapsed .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
}

/* Compact button groups */
.main-wrapper.sidebar-collapsed .btn-group .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Compact pagination */
.main-wrapper.sidebar-collapsed .pagination {
    margin: 0.75rem 0 0 0;
    gap: 0.2rem;
}

.main-wrapper.sidebar-collapsed .page-link {
    padding: 0.375rem 0.625rem;
    font-size: 0.8rem;
    min-width: 32px;
}

/* Compact navigation */
.main-wrapper.sidebar-collapsed .nav {
    margin-bottom: 0.5rem;
}

.main-wrapper.sidebar-collapsed .nav-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Top Bar */
.top-bar {
    background: var(--white);
    border-bottom: 1px solid #e5e5e7;
    padding: 0.125rem 1rem;
    margin-bottom: 0.125rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 24px;
}

.page-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: var(--apple-text);
}

/* Responsive Top Bar */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        padding: 0.5rem 1rem;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .user-info {
        align-self: flex-end;
    }
}

@media (max-width: 576px) {
    .top-bar {
        padding: 0.375rem 0.75rem;
    }
    
    .page-title {
        font-size: 1rem;
    }
    
    .user-avatar {
        width: 16px;
        height: 16px;
        font-size: 0.5rem;
    }
    
    .user-name {
        font-size: 0.6rem;
    }
    
    .user-role {
        font-size: 0.5rem;
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}



.user-avatar {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.55rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.user-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.55rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.65rem;
    color: var(--apple-text);
}

.user-role {
    font-size: 0.55rem;
    color: var(--gray);
    line-height: 1.0;
}

/* Cards */
.card {
    background: var(--apple-card);
    border: 1px solid var(--apple-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}

.card-header {
    background: var(--apple-card);
    border-bottom: 1px solid var(--apple-border);
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--apple-text);
}

.card-body {
    padding: 1.5rem;
    background: var(--apple-card);
}

.card-footer {
    padding: 1rem;
    border-top: 1px solid #e5e5e7;
    background: #fafafa;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--apple-blue);
    border-color: var(--apple-blue);
    color: var(--apple-white);
}

.btn-primary:hover {
    background: #56CC;
    border-color: #56CC;
    color: var(--apple-white);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-success {
    background: var(--apple-green);
    border-color: var(--apple-green);
}

.btn-warning {
    background: var(--apple-orange);
    border-color: var(--apple-orange);
}

.btn-danger {
    background: var(--apple-red);
    border-color: var(--apple-red);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d1d6;
    border-radius: var(--border-radius);
    font-size: 0.875rem;

}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d1d6;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th,
.table td {
    padding: 0.375rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid #e5e5e7;
    font-size: 0.75rem;
    transition: padding 0.3s ease, font-size 0.3s ease;
}

.table th {
    background: #fafafa;
    font-weight: 600;
    color: var(--dark);
}

.table tbody tr:hover {
    background: rgba(0, 122, 255, 0.05);
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid #e5e5e7;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(52, 199, 89, 0.1);
    color: #248a3d;
    border-color: rgba(52, 199, 89, 0.2);
}

.alert-danger {
    background: rgba(255, 59, 48, 0.1);
    color: #d70015;
    border-color: rgba(255, 59, 48, 0.2);
}

.alert-warning {
    background: rgba(255, 149, 0, 0.1);
    color: #b95000;
    border-color: rgba(255, 149, 0, 0.2);
}

.alert-info {
    background: rgba(90, 200, 250, 0.1);
    color: #0077cc;
    border-color: rgba(90, 200, 250, 0.2);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    text-align: center;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-secondary {
    background: var(--secondary);
    color: white;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: white;
}

.badge-danger {
    background: var(--danger);
    color: white;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col,
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    padding: 0 0.5rem;
    flex: 1;
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-5 { flex: 0 0 41.666667%; }
.col-6 { flex: 0 0 50%; }
.col-7 { flex: 0 0 58.333333%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-10 { flex: 0 0 83.333333%; }
.col-11 { flex: 0 0 91.666667%; }
.col-12 { flex: 0 0 100%; }

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--gray); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 2.5em 2em;
    width: 100%;
    max-width: 300px;
    margin: 0;
    transition: transform 0.3s;
}

.login-card:hover {
    transform: scale(1.02);
}

.login-header {
    text-align: center;
    margin-bottom: 2em;
}

.login-logo {
    margin-bottom: 1.5em;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 0;
}

@media (min-width: 1920px) {
    .login-card {
        max-width: 380px;
        padding: 3em 2.5em;
    }
    .login-title {
        font-size: 2.25em;
    }
    .login-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-height: 900px) {
    .login-card {
        padding: 2em 1.5em;
        transform: scale(0.95);
    }
    .login-header {
        margin-bottom: 1.5em;
    }
    .login-title {
        font-size: 1.75em;
    }
}

@media (max-height: 700px) {
    .login-card {
        padding: 1.2em 1em;
        transform: scale(0.85);
    }
    .login-header {
        margin-bottom: 1em;
    }
    .login-title {
        font-size: 1.3em;
    }
    .login-subtitle {
        font-size: 0.95rem;
    }
} 

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .sidebar,
    .top-bar,
    .footer {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .main-wrapper {
        margin-left: 0;
    }
} 

/* Login page full HD optimization - FIXED */
.login-container {
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Business style background */
    background: linear-gradient(135deg, #e9ecef 0%, #dee3ea 100%);
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 1.5em 1.5em;
    width: 100%;
    max-width: 320px;
    margin: 0;
    transition: transform 0.3s;
}

.login-card:hover {
    transform: scale(1.01);
}

.login-header {
    text-align: center;
    margin-bottom: 1.5em;
}

.login-logo {
    margin-bottom: 1em;
}

.login-title {
    font-size: 1.75em;
    font-weight: 700;
    color: var(--apple-dark-gray);
    margin-bottom: 0.25rem;
}

.login-subtitle {
    color: var(--apple-gray);
    font-size: 0.9em;
    margin-bottom: 0;
}

/* Compact form styling */
.login-card .form-group {
    margin-bottom: 1rem;
}

.login-card .form-label {
    font-size: 0.9em;
    margin-bottom: 0.25em;
}

.login-card .form-control {
    padding: 0.5rem 0.75rem;
    font-size: 0.9em;
}

.login-card .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9em;
}

.login-card .alert {
    padding: 0.5rem 0.75rem;
    font-size: 0.85em;
    margin-bottom: 1rem;
}

.login-card .text-center {
    margin-top: 1.5em;
}

.login-card small {
    font-size: 0.8em;
}

@media (min-width: 1920px) {
    .login-card {
        max-width: 360px;
        padding: 2em 1.5em;
    }
    .login-title {
        font-size: 2em;
    }
    .login-subtitle {
        font-size: 1rem;
    }
}

@media (max-height: 900px) {
    .login-card {
        padding: 1.2em 1em;
        transform: scale(0.9);
    }
    .login-header {
        margin-bottom: 1em;
    }
    .login-title {
        font-size: 1.5em;
    }
    .login-subtitle {
        font-size: 0.8em;
    }
}

@media (max-height: 700px) {
    .login-card {
        padding: 1em 0.8em;
        transform: scale(0.8);
    }
    .login-header {
        margin-bottom: 0.8em;
    }
    .login-title {
        font-size: 1.3em;
    }
    .login-subtitle {
        font-size: 0.75em;
    }
    .login-card .form-group {
        margin-bottom: 0.8rem;
    }
} 

/* Button centering for icon and text */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 00.5m;
}

.btn i {
    margin: 0;
}

/* Ensure full-width buttons are properly centered */
.btn.w-100 {
    text-align: center;
}

/* Footer */
.footer {
    background: var(--apple-card);
    border-top: 1px solid var(--apple-border);
    color: var(--apple-text-secondary);
    padding: 1rem 0;
    margin-top: auto;
    position: relative;
    z-index: 100;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--apple-blue);
    font-weight: 600;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--apple-text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 200px;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left:0;
    }
    
    .main-wrapper.sidebar-collapsed {
        margin-left:0;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .form-control {
        padding: 0.5rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        font-size:0.8rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .card-header {
        padding: 0.75rem;
    }
    
    .card-body {
        padding: 0.5rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .table th,
    .table td {
        padding: 0.25rem;
        font-size: 0.75rem;
    }
    
    .alert {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
} 

/* User Management Styles */
.user-management {
    background: var(--apple-background);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-purple));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.user-avatar.small {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

.user-avatar.large {
    width: 48px;
    height: 48px;
    font-size: 1rem;
}

/* User table enhancements */
.table-hover tbody tr:hover {
    background-color: rgba(0, 122, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table th {
    background: var(--apple-light-gray);
    border-bottom: 2px solid var(--apple-border);
    font-weight: 600;
    color: var(--apple-text);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
    border-bottom: 1px solid var(--apple-border);
    padding: 1rem 0.75rem;
}

/* Badge enhancements */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--apple-red), #FF6B6B) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--apple-orange), #FFB84D) !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--apple-blue), #4A90E2) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, var(--apple-gray), #A8A8A8) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--apple-green), #4CAF50) !important;
}

/* Button group enhancements */
.btn-group .btn {
    border-radius: 0;
    margin: 0;
    border: 1px solid var(--apple-border);
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.btn-group .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Modal enhancements */
.modal-content {
    background: var(--apple-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--apple-border);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1rem 1.5rem;
}

.modal-title {
    color: var(--apple-text);
    font-weight: 600;
    font-size: 1.1rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--apple-border);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    padding: 1rem 1.5rem;
}

/* Compact modal form styling */
.modal .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--apple-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.modal .form-control,
.modal .form-select {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    min-height: 32px;
    border-radius: 6px;
    border: 1px solid var(--apple-border);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal .form-control:focus,
.modal .form-select:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 0.15rem rgba(0, 122, 255, 0.25);
    outline: none;
}

.modal .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    min-height: 32px;
    border-radius: 6px;
    font-weight: 600;
}

.modal .btn-close {
    background-size: 0.8rem;
    opacity: 0.7;
}

.modal .btn-close:hover {
    opacity: 1;
}

.modal .text-muted {
    font-size: 0.7rem;
}

/* Invalid form field styling for modals */
.modal .form-control.is-invalid {
    border-color: var(--apple-red);
    box-shadow: 0 0 0 0.15rem rgba(255, 59, 48, 0.25);
}

.modal .form-control.is-invalid:focus {
    border-color: var(--apple-red);
    box-shadow: 0 0 0 0.15rem rgba(255, 59, 48, 0.25);
}

/* Error message styling for modals */
.modal .alert-danger {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: var(--apple-red);
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

/* Form enhancements */
.form-control:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 122, 255, 0.25);
}

.form-select:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 122, 255, 0.25);
}

/* Search and filter enhancements */
.input-group-text {
    background: var(--apple-light-gray);
    border-color: var(--apple-border);
    color: var(--apple-text-secondary);
}

/* Pagination enhancements */
.pagination {
    margin: 1rem 0 0 0;
    gap: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination .page-link {
    border: 1px solid var(--apple-border);
    color: var(--apple-text);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 36px;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.pagination .page-link:hover {
    background: var(--apple-blue);
    border-color: var(--apple-blue);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 122, 255, 0.2);
}

.pagination .page-item.active .page-link {
    background: var(--apple-blue);
    border-color: var(--apple-blue);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 122, 255, 0.3);
}

.pagination .page-item.disabled .page-link {
    background: rgba(248, 250, 252, 0.8);
    color: var(--apple-text-secondary);
    border-color: var(--apple-border);
    cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
    background: rgba(248, 250, 252, 0.8);
    border-color: var(--apple-border);
    color: var(--apple-text-secondary);
    transform: none;
    box-shadow: none;
}

/* Ellipsis styling */
.pagination .page-item.disabled .page-link {
    background: transparent;
    border-color: transparent;
    color: var(--apple-text-secondary);
    cursor: default;
    font-weight: 600;
    padding: 0.5rem 0.25rem;
    min-width: auto;
}

.pagination .page-item.disabled .page-link:hover {
    background: transparent;
    border-color: transparent;
    color: var(--apple-text-secondary);
    transform: none;
    box-shadow: none;
}

/* Loading states */
.spinner-border {
    color: var(--apple-blue);
}

/* Alert enhancements */
.alert {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #D4EDDA, #C3E6CB);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #F8D7DA, #F5C6CB);
    color: #721C24;
}

.alert-warning {
    background: linear-gradient(135deg, #FFF3CD, #FFEAA7);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #D1ECF1, #BEE5EB);
    color: #0C5460;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.375rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .pagination {
        gap: 0.15rem;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.625rem;
        font-size: 0.8rem;
        min-width: 32px;
    }
}

@media (max-width: 576px) {
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .table th,
    .table td {
        padding: 0.25rem 0.125rem;
        font-size: 0.7rem;
    }
    
    .btn-group .btn {
        padding: 0.125rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .badge {
        padding: 0.125rem 0.25rem;
        font-size: 0.65rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal .form-label {
        font-size: 0.7rem;
    }
    
    .modal .form-control,
    .modal .form-select {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
        min-height: 28px;
    }
    
    .modal .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        min-height: 28px;
    }
    
    .pagination {
        gap: 0.1rem;
    }
    
    .pagination .page-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        min-width: 28px;
    }
}

/* Animation enhancements - Removed for performance */

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.page-link:focus {
    outline: 2px solid var(--apple-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .user-avatar {
        border: 2px solid var(--apple-text);
    }
    
    .badge {
        border: 1px solid var(--apple-text);
    }
    
    .table th {
        background: var(--apple-text);
        color: var(--apple-white);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .table tbody tr {
        animation: none;
    }
    
    .btn:hover,
    .page-link:hover {
        transform: none;
    }
    
    .sidebar,
    .main-wrapper {
        transition: none;
    }
} 

/* Profile Page Styles */
.profile-card {
    background: linear-gradient(135deg, var(--apple-card) 0%, #f8f9fa 100%);
    border: 1px solid var(--apple-border);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #007AFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
}

.profile-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #007AFF 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2.5rem;
    border: 4px solid white;
}

.profile-name {
    font-weight: 700;
    color: var(--apple-text);
    font-size: 1.5rem;
}

.profile-email {
    font-size: 0.9rem;
    color: var(--gray);
}

.profile-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-badges .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.profile-status {
    margin-top: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--apple-card);
    border: 1px solid var(--apple-border);
    font-size: 0.9rem;
    font-weight: 600;
}

.status-item.approved {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.status-item.pending {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-item.rejected {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Info Items */
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--apple-border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--apple-text);
    font-size: 0.9rem;
    margin: 0;
}

.info-value {
    font-size: 0.9rem;
    color: var(--gray);
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.info-value .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Account Actions */
.account-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-avatar-fallback {
        font-size: 2rem;
    }
    
    .profile-name {
        font-size: 1.25rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .info-value {
        text-align: left;
        max-width: 100%;
    }
    
    .profile-badges {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .profile-card {
        margin-bottom: 1rem;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .profile-avatar-fallback {
        font-size: 1.5rem;
    }
    
    .profile-name {
        font-size: 1.1rem;
    }
    
    .profile-email {
        font-size: 0.8rem;
    }
}

/* Modal Enhancements */
.modal-content {
    border-radius: 12px;
    border: 1px solid var(--apple-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.modal-header {
    border-bottom: 1px solid var(--apple-border);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--apple-border);
    padding: 1.5rem;
}

/* Form Enhancements */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 122, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--apple-text);
    margin-bottom: 0.5rem;
}

.form-text {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 122, 255, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Alert Enhancements */
.alert {
    border-radius: 8px;
    border: 1px solid transparent;
}

.alert-info {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.2);
    color: #0056b3;
}

/* Animation Effects */
.profile-card {
    animation: fadeInUp 0.6s ease-out;
}

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

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

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

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