/**
 * ============================================================================
 * Corporate Responsive Design System
 * ============================================================================
 * Design System: Navy Blue Professional Theme
 * Mode: Light Only (No Dark Mode, No Gradients, No Neon)
 * Responsive: Mobile-First Approach
 * Colors: Navy Blue (#1a2b4a), White (#FFFFFF), Light Gray (#F5F7FA)
 * ============================================================================
 */

/* ========================================================================== */
/* 1. CSS VARIABLES (Design Tokens) - Corporate Navy Blue Theme */
/* ========================================================================== */

:root {
    /* Navy Blue Primary Colors - Corporate */
    --navy-50: #f0f4f8;
    --navy-100: #d9e2ec;
    --navy-200: #bcccdc;
    --navy-300: #9fb3c8;
    --navy-400: #829ab1;
    --navy-500: #627d98;
    --navy-600: #486581;
    --navy-700: #334e68;
    --navy-800: #243b53;
    --navy-900: #102a43;
    --navy-950: #0a1929;

    /* Primary Navy (Main Brand Color) */
    --primary: #1a2b4a;
    --primary-light: #243b53;
    --primary-dark: #102a43;
    --primary-hover: #334e68;

    /* Grayscale */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Semantic Colors */
    --success: #059669;
    --success-light: #D1FAE5;
    --warning: #D97706;
    --warning-light: #FEF3C7;
    --danger: #DC2626;
    --danger-light: #FEE2E2;
    --info: #2563EB;
    --info-light: #DBEAFE;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Spacing */
    --header-height: 64px;
    --sidebar-width: 260px;
    --sidebar-width-collapsed: 72px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Shadows - Subtle */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-tooltip: 1070;
}

/* ========================================================================== */
/* 2. BASE STYLES */
/* ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========================================================================== */
/* 3. TOP NAVIGATION BAR - Fixed Responsive */
/* ========================================================================== */

.navbar-corporate {
    position: sticky;
    top: 0;
    z-index: var(--z-fixed);
    background-color: var(--primary);
    box-shadow: var(--shadow-md);
    height: var(--header-height);
}

.navbar-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mobile Menu Toggle Button - Always visible for admin */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    margin-right: 0.75rem;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle i {
    font-size: 1.25rem;
}

/* Logo/Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-brand-short {
    display: none;
}

/* User Section */
.navbar-user-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Company Display */
.navbar-company {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
}

.navbar-company i {
    margin-right: 0.5rem;
}

/* User Dropdown Button */
.navbar-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.navbar-user-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navbar-user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.navbar-user-info {
    text-align: left;
    line-height: 1.2;
}

.navbar-user-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.navbar-user-position {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Switch Portal Button */
.navbar-portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--info);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.navbar-portal-btn:hover {
    background: #1d4ed8;
}

/* Dropdown Menus */
.navbar-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    min-width: 16rem;
    z-index: var(--z-dropdown);
    overflow: hidden;
}

.navbar-dropdown-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.navbar-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: background var(--transition-fast);
}

.navbar-dropdown-item:hover {
    background: var(--gray-100);
}

.navbar-dropdown-item i {
    width: 1.25rem;
    margin-right: 0.75rem;
    color: var(--gray-500);
}

.navbar-dropdown-divider {
    border-top: 1px solid var(--gray-200);
    margin: 0.25rem 0;
}

.navbar-dropdown-item.danger {
    color: var(--danger);
}

.navbar-dropdown-item.danger:hover {
    background: var(--danger-light);
}

/* ========================================================================== */
/* 4. SIDEBAR NAVIGATION */
/* ========================================================================== */

.sidebar-corporate {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: white;
    border-right: 1px solid var(--gray-200);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: var(--z-modal);
    transition: transform var(--transition-base);
    transform: translateX(-100%) !important;
    /* Hidden by default */
    box-shadow: var(--shadow-lg);
}

.sidebar-corporate.active {
    transform: translateX(0) !important;
    /* Show when active */
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section-title {
    padding: 0.5rem 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
}

.sidebar-section-title.section-admin {
    color: var(--primary);
}

.sidebar-section-title.section-email {
    color: #7c3aed;
}

.sidebar-section-title.section-marketing {
    color: #ea580c;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
}

.sidebar-link:hover {
    background: var(--navy-50);
    color: var(--primary);
}

.sidebar-link.active {
    background: var(--navy-50);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 500;
}

.sidebar-link i {
    width: 1.25rem;
    margin-right: 0.75rem;
    color: var(--gray-500);
    text-align: center;
}

.sidebar-link.active i,
.sidebar-link:hover i {
    color: var(--primary);
}

/* Badge in sidebar */
.sidebar-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    min-width: 1.25rem;
    text-align: center;
}

/* Sidebar Overlay - Works on all screen sizes */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-modal) - 1);
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

/* ========================================================================== */
/* 5. MAIN CONTENT AREA */
/* ========================================================================== */

.main-content-corporate {
    margin-left: 0 !important;
    /* Full width content - no sidebar */
    min-height: calc(100vh - var(--header-height));
    width: 100% !important;
    flex: 1;
}

.main-content-corporate.no-sidebar {
    margin-left: 0 !important;
}

/* Breadcrumb */
.breadcrumb-corporate {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0.875rem 1.5rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.breadcrumb-item a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--gray-400);
    margin: 0 0.25rem;
}

/* Page Content - Full width */
.page-content {
    padding: 1.5rem;
    width: 100%;
}

/* ========================================================================== */
/* 6. CARD COMPONENTS - Corporate Style */
/* ========================================================================== */

.card-corporate {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header-corporate {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
}

.card-title-corporate {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.card-body-corporate {
    padding: 1.5rem;
}

.card-footer-corporate {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* Stats Card */
.stats-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 1.25rem;
    transition: box-shadow var(--transition-fast);
}

.stats-card:hover {
    box-shadow: var(--shadow-md);
}

.stats-card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stats-card-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--gray-500);
}

.stats-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.25rem;
}

.stats-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--navy-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* ========================================================================== */
/* 7. BUTTON COMPONENTS - Corporate Style */
/* ========================================================================== */

.btn-corporate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-corporate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Button - Navy */
.btn-primary-corporate {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary-corporate:hover:not(:disabled) {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Secondary Button */
.btn-secondary-corporate {
    background: white;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-secondary-corporate:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

/* Outline Button */
.btn-outline-corporate {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

/* Success Button */
.btn-success-corporate {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.btn-success-corporate:hover:not(:disabled) {
    background: #047857;
}

/* Danger Button */
.btn-danger-corporate,
.btn-corporate.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-danger-corporate:hover:not(:disabled),
.btn-corporate.btn-danger:hover:not(:disabled) {
    background: #b91c1c;
}

/* Warning Button */
.btn-warning-corporate,
.btn-corporate.btn-warning {
    background: var(--warning);
    color: white;
    border-color: var(--warning);
}

.btn-warning-corporate:hover:not(:disabled),
.btn-corporate.btn-warning:hover:not(:disabled) {
    background: #d97706;
}

/* Info Button */
.btn-info-corporate,
.btn-corporate.btn-info {
    background: var(--info);
    color: white;
    border-color: var(--info);
}

.btn-info-corporate:hover:not(:disabled),
.btn-corporate.btn-info:hover:not(:disabled) {
    background: #1d4ed8;
}

/* Success Button - Short Class */
.btn-corporate.btn-success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.btn-corporate.btn-success:hover:not(:disabled) {
    background: #047857;
}

/* Outline Buttons */
.btn-outline-light,
.btn-corporate.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover:not(:disabled),
.btn-corporate.btn-outline-light:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

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

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

/* Button Sizes */
.btn-sm-corporate {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg-corporate {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* ========================================================================== */
/* 8. FORM COMPONENTS - Corporate Style */
/* ========================================================================== */

.form-group-corporate {
    margin-bottom: 1.25rem;
}

.form-label-corporate {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-label-required::after {
    content: ' *';
    color: var(--danger);
}

.form-control-corporate {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-900);
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.form-control-corporate:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

.form-control-corporate.is-invalid {
    border-color: var(--danger);
}

.form-control-corporate.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Select */
select.form-control-corporate {
    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='%236B7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

/* Textarea */
textarea.form-control-corporate {
    min-height: 100px;
    resize: vertical;
}

/* ========================================================================== */
/* 9. TABLE COMPONENTS - Corporate Style */
/* ========================================================================== */

.table-corporate {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table-corporate th {
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

.table-corporate td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.table-corporate tbody tr:hover {
    background: var(--gray-50);
}

/* Table Responsive Wrapper */
.table-responsive-corporate {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========================================================================== */
/* 10. BADGE COMPONENTS */
/* ========================================================================== */

.badge-corporate {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-primary {
    background: var(--navy-100);
    color: var(--navy-800);
}

.badge-success {
    background: var(--success-light);
    color: #047857;
}

.badge-warning {
    background: var(--warning-light);
    color: #b45309;
}

.badge-danger {
    background: var(--danger-light);
    color: #b91c1c;
}

.badge-info {
    background: var(--info-light);
    color: #1d4ed8;
}

.badge-gray {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* ========================================================================== */
/* 11. ALERT COMPONENTS */
/* ========================================================================== */

.alert-corporate {
    padding: 1rem 1.25rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.alert-corporate i {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-success-corporate {
    background: var(--success-light);
    border: 1px solid #a7f3d0;
    color: #047857;
}

.alert-warning-corporate {
    background: var(--warning-light);
    border: 1px solid #fcd34d;
    color: #b45309;
}

.alert-danger-corporate {
    background: var(--danger-light);
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.alert-info-corporate {
    background: var(--info-light);
    border: 1px solid #93c5fd;
    color: #1d4ed8;
}

/* ========================================================================== */
/* 12. MODAL COMPONENTS */
/* ========================================================================== */

.modal-backdrop-corporate {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-corporate {
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 32rem;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header-corporate {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title-corporate {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.modal-close-corporate {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.25rem;
}

.modal-close-corporate:hover {
    color: var(--gray-700);
}

.modal-body-corporate {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-footer-corporate {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ========================================================================== */
/* 13. HERO/WELCOME SECTION */
/* ========================================================================== */

.hero-corporate {
    background: var(--primary);
    color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-info-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
}

.hero-info-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-info-value {
    font-size: 1.125rem;
    font-weight: 600;
}

/* ========================================================================== */
/* 14. MENU CARDS - Corporate Style */
/* ========================================================================== */

.menu-card-corporate {
    display: block;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 1.25rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.menu-card-corporate:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.menu-card-icon-corporate {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: transform var(--transition-fast);
}

.menu-card-corporate:hover .menu-card-icon-corporate {
    transform: scale(1.05);
}

.menu-card-icon-corporate i {
    color: white;
    font-size: 1.25rem;
}

.menu-card-title-corporate {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.menu-card-desc-corporate {
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.4;
}

/* ========================================================================== */
/* 15. FOOTER */
/* ========================================================================== */

.footer-corporate {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 80rem;
    margin: 0 auto;
    text-align: center;
}

.footer-company {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.footer-address {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* ========================================================================== */
/* 16. UTILITIES */
/* ========================================================================== */

/* Text truncate */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Visually hidden */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ========================================================================== */
/* 17. RESPONSIVE BREAKPOINTS */
/* ========================================================================== */

/* Mobile: up to 639px (default styles) */

/* Tablet Small: 640px - 767px */
@media (min-width: 640px) {
    .navbar-container {
        padding: 0 1.5rem;
    }

    .page-content {
        padding: 1.5rem;
    }

    .hero-corporate {
        padding: 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }
}

/* Tablet: 768px - 1023px */
@media (min-width: 768px) {
    .navbar-user-info {
        display: block;
    }

    .hero-content {
        flex-wrap: nowrap;
    }

    .modal-corporate {
        max-width: 40rem;
    }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
    .navbar-container {
        padding: 0 2rem;
    }

    .page-content {
        padding: 1.5rem 2rem;
    }
}

/* Large Desktop: 1280px and up */
@media (min-width: 1280px) {
    .navbar-container {
        max-width: 100%;
    }
}

/* ========================================================================== */
/* 18. MOBILE RESPONSIVE OVERRIDES */
/* ========================================================================== */

/* Mobile and small tablets */
@media (max-width: 1023px) {

    /* Mobile menu toggle is always visible now (handled in base styles) */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Navbar adjustments */
    .navbar-brand {
        font-size: 0.875rem;
    }

    .navbar-brand-full {
        display: none;
    }

    .navbar-brand-short {
        display: block;
    }

    .navbar-company {
        display: none;
    }

    .navbar-user-info {
        display: none;
    }

    .navbar-portal-btn span {
        display: none;
    }

    .navbar-portal-btn {
        padding: 0.5rem 0.75rem;
    }
}

/* Very small mobile screens */
@media (max-width: 479px) {
    .navbar-container {
        padding: 0 0.75rem;
    }

    .navbar-user-section {
        gap: 0.5rem;
    }

    .page-content {
        padding: 1rem;
    }

    .hero-corporate {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-info-box {
        display: none;
    }

    .stats-card-value {
        font-size: 1.5rem;
    }

    .card-header-corporate,
    .card-body-corporate,
    .card-footer-corporate {
        padding: 1rem;
    }

    .table-corporate th,
    .table-corporate td {
        padding: 0.5rem 0.75rem;
    }

    .modal-corporate {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }

    .modal-header-corporate,
    .modal-body-corporate,
    .modal-footer-corporate {
        padding: 1rem;
    }

    .btn-corporate {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
}

/* ========================================================================== */
/* 19. GRID SYSTEM - Responsive */
/* ========================================================================== */

.grid-corporate {
    display: grid;
    gap: 1rem;
}

/* Default: 1 column */
.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive grid */
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .xl\:grid-cols-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ========================================================================== */
/* 20. PRINT STYLES */
/* ========================================================================== */

@media print {

    .navbar-corporate,
    .sidebar-corporate,
    .mobile-menu-toggle,
    .sidebar-overlay {
        display: none !important;
    }

    .main-content-corporate {
        margin-left: 0 !important;
    }

    .page-content {
        padding: 0 !important;
    }
}

/* ========================================================================== */
/* 21. MONITORING & STATS COMPONENTS */
/* ========================================================================== */

/* Hero Section - Corporate Navy */
.hero-corporate {
    background-color: var(--primary);
    color: #FFFFFF;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .hero-corporate {
        padding: 2rem;
    }
}

/* Stats Card */
.stats-card {
    background-color: #FFFFFF;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.stats-card:hover {
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .stats-card {
        padding: 1.5rem;
    }
}

.stats-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stats-card-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.stats-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

@media (min-width: 768px) {
    .stats-card-value {
        font-size: 1.875rem;
    }
}

.stats-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stats-card-icon i {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .stats-card-icon {
        width: 3.5rem;
        height: 3.5rem;
    }

    .stats-card-icon i {
        font-size: 1.5rem;
    }
}

/* Card Corporate */
.card-corporate {
    background-color: #FFFFFF;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header-corporate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--gray-50);
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .card-header-corporate {
        padding: 1rem 1.5rem;
    }
}

.card-title-corporate {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .card-title-corporate {
        font-size: 1.125rem;
    }
}

/* Table Responsive */
.table-responsive-corporate {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-corporate {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.table-corporate thead {
    background-color: var(--gray-50);
}

.table-corporate th {
    padding: 0.75rem 0.75rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.table-corporate td {
    padding: 0.75rem 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.875rem;
    color: var(--gray-700);
}

@media (min-width: 768px) {

    .table-corporate th,
    .table-corporate td {
        padding: 1rem 1rem;
    }
}

.table-corporate tbody tr:hover {
    background-color: var(--gray-50);
}

/* Badges */
.badge-corporate {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    white-space: nowrap;
}

.badge-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.badge-danger {
    background-color: #FEE2E2;
    color: #991B1B;
}

.badge-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-info {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.badge-secondary {
    background-color: #F3F4F6;
    color: #4B5563;
}

/* Buttons */
.btn-corporate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-sm-corporate {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-primary-corporate {
    background-color: var(--primary);
    color: #FFFFFF;
}

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

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

.btn-outline-corporate:hover {
    background-color: var(--primary);
    color: #FFFFFF;
}

.btn-outline-light {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.btn-warning {
    background-color: #F97316;
    color: #FFFFFF;
}

.btn-warning:hover {
    background-color: #EA580C;
}

/* Menu Card */
.menu-card-corporate {
    display: block;
    background-color: #FFFFFF;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    text-decoration: none;
}

.menu-card-corporate:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

@media (min-width: 768px) {
    .menu-card-corporate {
        padding: 1.5rem;
    }
}

/* Form Inputs */
.form-input-corporate {
    padding: 0.625rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all var(--transition-base);
    width: 100%;
}

.form-input-corporate:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 43, 74, 0.1);
}

/* Form Label */
.form-label-corporate {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Button Small Size */
.btn-corporate.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Button Outline Dark */
.btn-corporate.btn-outline-dark {
    background-color: transparent;
    border: 1px solid var(--gray-400);
    color: var(--gray-700);
}

.btn-corporate.btn-outline-dark:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-500);
}

/* File Monitoring Specific Styles */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Chart Container Responsive */
.chart-container {
    position: relative;
    min-height: 250px;
    width: 100%;
}

@media (max-width: 640px) {
    .chart-container {
        min-height: 200px;
    }
}

/* ========================================================================== */
/* END OF STYLESHEET */
/* ========================================================================== */