/*
 * iOS 6 Style Theme for Ovizu Partner Panel
 * Gray-themed mobile responsive design
 * All functionality preserved - only UI styling changed
 */

/* ============================================
   1. CSS Variables & Base Styles
   ============================================ */
:root {
    /* Main Colors */
    --ios6-bg: #c5ccd4;
    --ios6-header-start: #b0bccd;
    --ios6-header-mid1: #6b7a8a;
    --ios6-header-mid2: #4a5662;
    --ios6-header-mid3: #3d4753;
    --ios6-header-end: #2c353f;

    /* Button Gradient */
    --ios6-btn-start: #8a9bab;
    --ios6-btn-mid1: #5a6a7a;
    --ios6-btn-mid2: #4a5a6a;
    --ios6-btn-end: #3a4a5a;

    /* Borders */
    --ios6-border-dark: #2a3a4a;
    --ios6-border-light: #b0b0b0;
    --ios6-border-card: #a0a0a0;

    /* Card & List */
    --ios6-card-bg: #ffffff;
    --ios6-list-header-start: #e8eaed;
    --ios6-list-header-end: #d8dadd;

    /* Status Colors */
    --ios6-success: #34c759;
    --ios6-danger: #ff3b30;
    --ios6-warning: #ff9500;
    --ios6-info: #007aff;

    /* Text Colors */
    --ios6-text-dark: #1a1a1a;
    --ios6-text-medium: #4a5568;
    --ios6-text-light: #6b7280;

    /* Input */
    --ios6-input-bg: #f8f8f8;
    --ios6-input-border: #b0b0b0;
}

/* ============================================
   2. Base Styles & Typography
   ============================================ */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html, body {
    height: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--ios6-bg) !important;
    color: var(--ios6-text-dark);
    font-size: 14px;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    color: var(--ios6-text-dark);
}

/* iOS 6 style label */
.ios6-label,
.item-title.item-label,
.item-label {
    font-size: 12px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    color: var(--ios6-text-medium) !important;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

/* ============================================
   3. iOS 6 Header/Navbar
   ============================================ */
.navbar,
.navbar-inner {
    background: linear-gradient(to bottom,
        var(--ios6-header-start) 0%,
        var(--ios6-header-mid1) 50%,
        var(--ios6-header-mid2) 51%,
        var(--ios6-header-mid3) 85%,
        var(--ios6-header-end) 100%) !important;
    border-bottom: 1px solid var(--ios6-border-dark) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    position: sticky !important;
    top: 0;
    z-index: 1000;
}

.navbar {
    height: 44px !important;
    min-height: 44px !important;
}

.navbar-inner {
    height: 44px !important;
    padding: 0 10px !important;
}

.navbar .sliding.custom-title,
.navbar .title,
.sliding.custom-title {
    color: #fff !important;
    font-weight: bold !important;
    font-size: 18px !important;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.4) !important;
    position: static !important;
    transform: none !important;
    -webkit-transform: none !important;
}

.navbar a,
.navbar .left a,
.navbar .right a {
    color: #fff !important;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
}

.navbar .left a span,
.back.link span {
    font-size: 14px;
    font-weight: 500;
}

/* Header icons */
.navbar .material-icons {
    color: #fff !important;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
}

/* Dropdown menu iOS 6 style */
.navbar .dropdown-menu {
    background: var(--ios6-card-bg);
    border: 1px solid var(--ios6-border-dark);
    border-radius: 8px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    overflow: hidden;
}

.navbar .dropdown-menu::before {
    display: none;
}

.navbar .dropdown-menu a {
    color: var(--ios6-text-dark) !important;
    text-shadow: none !important;
    border-bottom: 1px solid var(--ios6-border-light);
    padding: 12px 15px !important;
}

.navbar .dropdown-menu a:last-child {
    border-bottom: none;
}

.navbar .dropdown-menu a:active {
    background: linear-gradient(to bottom, var(--ios6-info), #0051a8) !important;
    color: #fff !important;
}

/* ============================================
   4. iOS 6 Sidebar Menu
   ============================================ */
.side-menu {
    background: linear-gradient(to bottom,
        var(--ios6-header-start) 0%,
        var(--ios6-header-mid1) 30%,
        var(--ios6-header-end) 100%) !important;
    border-right: 1px solid var(--ios6-border-dark);
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.side-menu ul li a {
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
    min-height: 44px !important;
    padding: 12px 15px !important;
}

.side-menu ul li a:active {
    background: rgba(255,255,255,0.1) !important;
}

.side-menu .close-btn {
    color: #fff !important;
}

/* ============================================
   5. iOS 6 Buttons
   ============================================ */
.button,
.btn,
button[type="submit"],
.button-purple,
.button-big,
.account-btn {
    background: linear-gradient(to bottom,
        var(--ios6-btn-start) 0%,
        var(--ios6-btn-mid1) 50%,
        var(--ios6-btn-mid2) 51%,
        var(--ios6-btn-end) 100%) !important;
    border: 1px solid var(--ios6-border-dark) !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-weight: bold !important;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.4) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
    min-height: 44px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    text-transform: none !important;
    cursor: pointer;
    transition: all 0.1s ease;
}

.button:active,
.btn:active,
button[type="submit"]:active,
.button-purple:active {
    background: linear-gradient(to bottom,
        var(--ios6-btn-end) 0%,
        var(--ios6-btn-mid2) 50%,
        var(--ios6-btn-mid1) 51%,
        var(--ios6-btn-start) 100%) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

/* Success Button */
.button-green,
.btn-success {
    background: linear-gradient(to bottom,
        #5cd978 0%,
        #34c759 50%,
        #2db14e 51%,
        #249c43 100%) !important;
    border-color: #1d7d35 !important;
}

/* Danger Button */
.button-red,
.btn-danger {
    background: linear-gradient(to bottom,
        #ff6961 0%,
        #ff3b30 50%,
        #e6352b 51%,
        #cc2f26 100%) !important;
    border-color: #a32720 !important;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(to bottom,
        #5a9cff 0%,
        #007aff 50%,
        #006ee6 51%,
        #0062cc 100%) !important;
    border-color: #004999 !important;
}

/* ============================================
   6. iOS 6 Cards & Containers
   ============================================ */
.card-box,
.chart-box,
.dash-widget,
.widget,
.card {
    background-color: var(--ios6-card-bg) !important;
    border: 1px solid var(--ios6-border-card) !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    margin-bottom: 15px;
    overflow: hidden;
}

.card-box {
    padding: 15px;
}

/* Card Header */
.card-header,
.list-header {
    background: linear-gradient(to bottom,
        var(--ios6-list-header-start) 0%,
        var(--ios6-list-header-end) 100%) !important;
    border-bottom: 1px solid var(--ios6-border-light) !important;
    padding: 10px 15px;
    font-weight: bold;
    color: var(--ios6-text-dark);
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

/* ============================================
   7. iOS 6 Lists
   ============================================ */
.list ul,
.salary-list ul,
.leave-list ul,
.settings-list ul {
    background: var(--ios6-card-bg) !important;
    border: 1px solid var(--ios6-border-card) !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.list li,
.salary-list li,
.leave-list li,
.settings-list li {
    background-color: var(--ios6-card-bg) !important;
    border-bottom: 1px solid var(--ios6-border-light) !important;
    border-top: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

.list li:last-child,
.salary-list li:last-child {
    border-bottom: none !important;
}

.list li:active,
.salary-list li:active {
    background-color: #d9d9d9 !important;
}

/* List item content */
.item-content {
    padding: 12px 15px !important;
    min-height: 44px;
}

.item-title {
    font-size: 15px;
    color: var(--ios6-text-dark);
}

.item-subtitle,
.item-text {
    font-size: 13px;
    color: var(--ios6-text-light);
}

/* ============================================
   8. iOS 6 Badges
   ============================================ */
.badge {
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    padding: 4px 10px !important;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.2);
    border: none !important;
    min-width: auto !important;
}

.badge-success {
    background: linear-gradient(to bottom, #5cd978 0%, #34c759 50%, #2db14e 100%) !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.badge-danger {
    background: linear-gradient(to bottom, #ff6961 0%, #ff3b30 50%, #e6352b 100%) !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.badge-warning {
    background: linear-gradient(to bottom, #ffb340 0%, #ff9500 50%, #e68600 100%) !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.badge-primary,
.badge-info {
    background: linear-gradient(to bottom, #5a9cff 0%, #007aff 50%, #006ee6 100%) !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ============================================
   9. iOS 6 Forms & Inputs
   ============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="search"],
textarea,
select,
.custom-form input,
.custom-form select,
.custom-form textarea {
    background-color: var(--ios6-input-bg) !important;
    border: 1px solid var(--ios6-input-border) !important;
    border-radius: 4px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    color: var(--ios6-text-dark) !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    min-height: 40px;
    width: 100%;
    box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--ios6-info) !important;
    outline: none !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 0 2px rgba(0,122,255,0.2) !important;
}

/* Select dropdown iOS style */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 35px !important;
}

/* Placeholder */
::placeholder {
    color: #999 !important;
    opacity: 1;
}

/* ============================================
   10. iOS 6 Toggle Switch
   ============================================ */
.switch {
    width: 51px !important;
    height: 31px !important;
}

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

.slider {
    background: linear-gradient(to bottom, #e8e8e8 0%, #d0d0d0 100%) !important;
    border: 1px solid #b0b0b0 !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2) !important;
}

.slider:before {
    background: linear-gradient(to bottom, #fff 0%, #f0f0f0 100%) !important;
    border: 1px solid #b0b0b0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    height: 27px !important;
    width: 27px !important;
    left: 1px !important;
    bottom: 1px !important;
}

input:checked + .slider {
    background: linear-gradient(to bottom, #5cd978 0%, #34c759 50%, #2db14e 100%) !important;
    border-color: #1d7d35 !important;
}

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

.slider.round {
    border-radius: 31px !important;
}

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

/* ============================================
   11. iOS 6 Segment Control
   ============================================ */
.segmented,
.nav-tabs {
    background: linear-gradient(to bottom, #e8e8e8 0%, #d0d0d0 100%);
    border: 1px solid var(--ios6-border-light);
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
    padding: 2px;
    display: flex;
}

.segmented .button,
.nav-tabs .nav-link {
    background: transparent !important;
    border: none !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    color: var(--ios6-text-dark) !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5) !important;
    min-height: 30px !important;
    padding: 6px 12px !important;
    flex: 1;
}

.segmented .button.button-active,
.segmented .button.tab-link-active,
.nav-tabs .nav-link.active {
    background: linear-gradient(to bottom,
        var(--ios6-btn-start) 0%,
        var(--ios6-btn-mid1) 50%,
        var(--ios6-btn-mid2) 51%,
        var(--ios6-btn-end) 100%) !important;
    color: #fff !important;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.4) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

/* ============================================
   12. iOS 6 Modal
   ============================================ */
.modal,
.popup {
    background-color: rgba(0,0,0,0.5) !important;
}

.modal-content,
.popup-content {
    background-color: var(--ios6-card-bg) !important;
    border-radius: 10px !important;
    border: 1px solid var(--ios6-border-dark);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(to bottom,
        var(--ios6-header-start) 0%,
        var(--ios6-header-mid1) 50%,
        var(--ios6-header-mid2) 51%,
        var(--ios6-header-end) 100%) !important;
    border-bottom: 1px solid var(--ios6-border-dark) !important;
    color: #fff;
    padding: 12px 15px;
}

.modal-header .modal-title {
    color: #fff !important;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
    font-weight: bold;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    background: linear-gradient(to bottom,
        var(--ios6-list-header-start) 0%,
        var(--ios6-list-header-end) 100%);
    border-top: 1px solid var(--ios6-border-light);
    padding: 12px 15px;
}

/* ============================================
   13. iOS 6 Login Page
   ============================================ */
.login-page,
.account-page {
    background-color: var(--ios6-bg) !important;
}

.account-content {
    background-color: var(--ios6-card-bg);
    border-radius: 10px;
    border: 1px solid var(--ios6-border-card);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 25px !important;
    margin: 15px;
}

.account-title h3 {
    color: var(--ios6-text-dark);
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.account-form .input-list input {
    margin-bottom: 15px;
}

/* ============================================
   14. iOS 6 Dashboard Widgets
   ============================================ */
.dash-widget {
    background-color: var(--ios6-card-bg) !important;
    border: 1px solid var(--ios6-border-card) !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}

.dash-widget h4 {
    color: var(--ios6-text-dark);
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.dash-widget-icon i {
    background: linear-gradient(to bottom,
        var(--ios6-btn-start) 0%,
        var(--ios6-btn-mid1) 50%,
        var(--ios6-btn-mid2) 51%,
        var(--ios6-btn-end) 100%) !important;
    border: 1px solid var(--ios6-border-dark) !important;
    color: #fff !important;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
}

/* Chart boxes with borders */
.chart-box.red-border {
    border-left: 4px solid var(--ios6-danger) !important;
}

.chart-box.success-border {
    border-left: 4px solid var(--ios6-success) !important;
}

/* ============================================
   15. iOS 6 Tables
   ============================================ */
.table,
table {
    background-color: var(--ios6-card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--ios6-border-card);
}

.table thead th,
table thead th {
    background: linear-gradient(to bottom,
        var(--ios6-list-header-start) 0%,
        var(--ios6-list-header-end) 100%);
    border-bottom: 1px solid var(--ios6-border-light);
    color: var(--ios6-text-dark);
    font-weight: bold;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
    padding: 12px;
}

.table tbody td,
table tbody td {
    border-bottom: 1px solid var(--ios6-border-light);
    padding: 12px;
}

.table tbody tr:last-child td,
table tbody tr:last-child td {
    border-bottom: none;
}

/* Table responsive wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

/* ============================================
   16. iOS 6 Animations
   ============================================ */
/* New item highlight animation */
@keyframes ios6-highlight {
    0% { background-color: #fffacd; }
    50% { background-color: #fff8b0; }
    100% { background-color: var(--ios6-card-bg); }
}

.new-item,
.highlight-new {
    animation: ios6-highlight 2s ease-in-out;
}

/* Toast notification animation */
@keyframes ios6-toast-in {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ios6-toast-out {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.toast,
.notification-toast {
    animation: ios6-toast-in 0.3s ease-out;
}

.toast.hiding {
    animation: ios6-toast-out 0.3s ease-in forwards;
}

/* ============================================
   17. iOS 6 Settings Page
   ============================================ */
.settings-list .card-box {
    padding: 0 !important;
}

.settings-list ul {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.settings-list li {
    padding: 0 !important;
}

.settings-list li .item-inner,
.settings-list li .item-content {
    padding: 12px 15px;
}

.settings-list .item-title {
    font-size: 15px;
    color: var(--ios6-text-dark);
}

/* ============================================
   18. iOS 6 Profile & Avatar
   ============================================ */
.avatar {
    border: 2px solid var(--ios6-border-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.profile-header {
    background: linear-gradient(to bottom,
        var(--ios6-header-start) 0%,
        var(--ios6-header-mid1) 50%,
        var(--ios6-header-mid2) 51%,
        var(--ios6-header-end) 100%) !important;
    border-bottom: 1px solid var(--ios6-border-dark);
}

.profile-header .profile-name,
.profile-header .profile-designation {
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
}

/* ============================================
   19. Page Content & Layout
   ============================================ */
.page,
.page-content {
    background-color: var(--ios6-bg) !important;
}

.page-content {
    padding: 15px 0;
}

.container {
    padding: 0 15px;
}

.main-wrapper {
    background-color: var(--ios6-bg);
    min-height: 100vh;
}

/* ============================================
   20. Mobile Optimizations
   ============================================ */
@media (max-width: 768px) {
    /* Touch-friendly elements */
    .button,
    .btn,
    button,
    .list li,
    .nav-link,
    a {
        min-height: 44px;
    }

    /* Better tap targets */
    .navbar .left a,
    .navbar .right a {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile form optimization */
    input, select, textarea {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }

    /* Card margins */
    .card-box,
    .chart-box,
    .dash-widget {
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* ============================================
   21. Utility Classes
   ============================================ */
/* iOS 6 inset shadow for containers */
.ios6-inset {
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
    border-radius: 6px;
    background: linear-gradient(to bottom, #e8e8e8 0%, #f8f8f8 100%);
}

/* iOS 6 raised effect */
.ios6-raised {
    box-shadow: 0 1px 3px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Text colors */
.text-success { color: var(--ios6-success) !important; }
.text-danger { color: var(--ios6-danger) !important; }
.text-warning { color: var(--ios6-warning) !important; }
.text-info { color: var(--ios6-info) !important; }

/* ============================================
   22. Date/Time Picker Override
   ============================================ */
.bootstrap-datetimepicker-widget {
    background: var(--ios6-card-bg);
    border: 1px solid var(--ios6-border-card);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: linear-gradient(to bottom, #5a9cff 0%, #007aff 50%, #006ee6 100%) !important;
    color: #fff !important;
    border-radius: 4px;
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--ios6-info) !important;
}

/* ============================================
   23. Progress Bar iOS 6 Style
   ============================================ */
.progress {
    background: linear-gradient(to bottom, #e8e8e8 0%, #d0d0d0 100%);
    border: 1px solid var(--ios6-border-light);
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
    height: 20px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(to bottom, #5a9cff 0%, #007aff 50%, #006ee6 100%);
    border-radius: 8px;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ============================================
   24. Alert/Message Boxes
   ============================================ */
.alert {
    border-radius: 8px;
    border: 1px solid;
    padding: 12px 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(to bottom, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
    color: #155724;
}

.alert-danger {
    background: linear-gradient(to bottom, #f8d7da 0%, #f5c6cb 100%);
    border-color: #dc3545;
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(to bottom, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background: linear-gradient(to bottom, #d1ecf1 0%, #bee5eb 100%);
    border-color: #17a2b8;
    color: #0c5460;
}

/* ============================================
   25. Custom Scrollbar (Webkit)
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ios6-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #a0a0a0 0%, #808080 100%);
    border-radius: 4px;
    border: 1px solid #909090;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #909090 0%, #707070 100%);
}

/* ============================================
   26. iOS 6 Notification Badge
   ============================================ */
.notification-badge {
    background: linear-gradient(to bottom, #ff6961 0%, #ff3b30 50%, #e6352b 100%);
    border: 2px solid #fff;
    border-radius: 10px;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    line-height: 14px;
    padding: 0 5px;
    position: absolute;
    top: -5px;
    right: -5px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ============================================
   27. Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--ios6-text-light);
}

.empty-state i {
    font-size: 48px;
    color: #c0c0c0;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 15px;
    margin: 0;
}

/* ============================================
   28. Loading Spinner iOS 6 Style
   ============================================ */
@keyframes ios6-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner,
.loading {
    width: 30px;
    height: 30px;
    border: 3px solid var(--ios6-border-light);
    border-top-color: var(--ios6-text-medium);
    border-radius: 50%;
    animation: ios6-spin 0.8s linear infinite;
}

/* ============================================
   29. Overlay Body (for sidebar)
   ============================================ */
body.overlay-body:before {
    background-color: rgba(0,0,0,0.5) !important;
}

/* ============================================
   30. Print Styles
   ============================================ */
@media print {
    .navbar,
    .side-menu,
    .button,
    .btn {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        background: #fff !important;
    }
}
