/**
 * Infonix Cloud Accounts - Main Stylesheet
 * Professional UI Design with Modern Colors
 */

/* ==========================================================================
   CSS Variables (Color Scheme)
   ========================================================================== */
:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    
    --bg-color: #f8fafc;
    --white: #ffffff;
    --dark-text: #1f2937;
    --light-text: #6b7280;
    --border-color: #e5e7eb;
    
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 70px;
    --header-height: 60px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

/* ==========================================================================
   Global Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--dark-text);
    line-height: 1.6;
}

.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ==========================================================================
   Layout Structure
   ========================================================================== */
.main-wrapper {
    display: flex;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
}

.main-content {
    padding: 2rem;
    min-height: calc(100vh - var(--header-height));
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.brand-title small {
    font-size: 0.85rem;
    color: var(--light-text);
    font-weight: 400;
}

.sidebar-toggle {
    color: var(--light-text);
    padding: 0.25rem;
}

.sidebar-body {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--dark-text);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 0;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
    text-decoration: none;
}

.nav-link.active {
    background-color: rgba(30, 64, 175, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 500;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.nav-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 1rem 1.5rem;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.user-avatar {
    font-size: 2rem;
    color: var(--primary-color);
}

.user-details strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark-text);
}

.user-details small {
    font-size: 0.8rem;
    color: var(--light-text);
}

/* ==========================================================================
   Main Header (Mobile)
   ========================================================================== */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-toggle {
    color: var(--dark-text);
    padding: 0.5rem;
    border: none;
    background: none;
}

.header-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color) !important;
    margin-left: 0.5rem;
    display: inline-block;
}

/* Ensure mobile header text is always visible */
.main-header .header-title {
    color: var(--dark-text) !important;
    font-weight: 600;
    text-shadow: none;
}

/* ==========================================================================
   Cards and Containers
   ========================================================================== */
.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* ==========================================================================
   Metric Cards
   ========================================================================== */
.metric-card {
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--radius-lg);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.metric-card.primary { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); }
.metric-card.success { background: linear-gradient(135deg, var(--success-color), #059669); }
.metric-card.danger { background: linear-gradient(135deg, var(--danger-color), #dc2626); }
.metric-card.warning { background: linear-gradient(135deg, var(--warning-color), #d97706); }
.metric-card.info { background: linear-gradient(135deg, var(--info-color), #0891b2); }

.metric-icon {
    font-size: 2.5rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

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

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background-color: var(--white);
}

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

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
}

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

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    color: var(--white);
}

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

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
    color: var(--white);
}

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

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    color: var(--white);
}

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

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

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

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Tables
   ========================================================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

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

.table tbody tr:hover {
    background-color: var(--bg-color);
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   Alerts and Flash Messages
   ========================================================================== */
.alert {
    padding: 1rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--success-color);
    color: #065f46;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: var(--danger-color);
    color: #991b1b;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: var(--warning-color);
    color: #92400e;
}

.alert-info {
    background-color: rgba(6, 182, 212, 0.1);
    border-color: var(--info-color);
    color: #155e75;
}

/* ==========================================================================
   Status Badges
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.badge-primary {
    background-color: rgba(30, 64, 175, 0.1);
    color: var(--primary-color);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-item .page-link {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    color: var(--dark-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.page-item .page-link:hover {
    background-color: var(--bg-color);
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   Modal/Popup Styles
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

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

.modal-body {
    padding: 1.5rem;
}

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

.close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--light-text);
    cursor: pointer;
    padding: 0;
}

/* ==========================================================================
   Responsive Design - Mobile First Approach
   ========================================================================== */

/* Mobile Styles (Default - 320px and up) */
.main-content {
    padding: 0.75rem;
}

.sidebar {
    transform: translateX(-100%);
}

.content-wrapper {
    margin-left: 0;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: block;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.mobile-menu-btn .hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--dark-text);
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar-close-btn {
    display: block;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* Mobile Page Headers */
.page-header-mobile {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.page-header-mobile .btn,
.page-header-mobile .btn-group {
    width: 100%;
    justify-content: center;
}

/* Mobile Grid System */
.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Mobile Cards */
.metric-card {
    margin-bottom: 1rem;
}

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

.metric-card .metric-icon {
    font-size: 2rem;
}

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

.form-control {
    font-size: 1rem; /* Better touch targets */
}

.btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
}

.btn-group {
    flex-direction: column;
    gap: 0.5rem;
}

.btn-group .btn {
    width: 100%;
}

/* Mobile Tables */
.table {
    font-size: 0.8rem;
}

.table th,
.table td {
    padding: 0.5rem 0.25rem;
    word-break: break-word;
}

.table-responsive {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* Hide less important columns on mobile */
.table .d-none-mobile {
    display: none;
}

/* Mobile Typography */
h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

.card-title {
    font-size: 1.1rem;
}

/* Mobile Spacing */
.main-content .mb-4 {
    margin-bottom: 1.5rem;
}

.row {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
}

.row > * {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

/* Small Mobile Phones (320px - 480px) */
@media (max-width: 480px) {
    .main-content {
        padding: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .metric-card .metric-value {
        font-size: 1.25rem;
    }
    
    .form-control {
        padding: 0.75rem 0.5rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .table {
        font-size: 0.75rem;
    }
    
    .table th,
    .table td {
        padding: 0.375rem 0.25rem;
    }
    
    /* Stack all grid columns on very small screens */
    .col-6,
    .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Reduce heading sizes */
    h1 {
        font-size: 1.5rem;
    }
    
    .login-card {
        margin: 0.5rem;
    }
    
    .login-body {
        padding: 1rem;
    }
}

/* Large Mobile / Small Tablets (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .main-content {
        padding: 1rem;
    }
    
    /* Remove 2-column layout for metric cards to allow proper stacking */
    /* .metric-cards-row .col-12 {
        flex: 0 0 50%;
        max-width: 50%;
    } */
    
    /* Better button group layout */
    .btn-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .btn-group .btn {
        flex: 1;
        min-width: 120px;
    }
    
    /* 2-column forms where appropriate */
    .form-row-tablet .col-12 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Medium breakpoint - Tablets and up (768px+) */
@media (min-width: 768px) {
    /* Grid classes for medium devices and up */
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .table .d-none-mobile {
        display: table-cell;
    }
}

/* Tablets (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .sidebar {
        transform: translateX(0);
    }
    
    .content-wrapper {
        margin-left: var(--sidebar-width);
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    /* Restore desktop-like behavior */
    .page-header-mobile {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .btn {
        width: auto;
    }
    
    .btn-group {
        flex-direction: row;
    }
    
    .btn-group .btn {
        width: auto;
    }
}

/* Desktop (993px and up) */
@media (min-width: 993px) {
    .sidebar {
        transform: translateX(0);
    }
    
    .content-wrapper {
        margin-left: var(--sidebar-width);
    }
    
    .main-content {
        padding: 2rem;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    /* Full desktop layout */
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Restore full desktop styles */
    .page-header-mobile {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .table .d-none-mobile {
        display: table-cell;
    }
    
    .metric-card .metric-value {
        font-size: 2rem;
    }
    
    .metric-card .metric-icon {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   Grid System & Layout Utilities
   ========================================================================== */
.container-fluid {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.flex-column {
    flex-direction: column;
}

/* ==========================================================================
   Icon Fonts (Simple Unicode Icons)
   ========================================================================== */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    text-align: center;
}

.icon-dashboard::before { content: "📊"; }
.icon-exchange::before { content: "💱"; }
.icon-arrow-up::before { content: "📈"; }
.icon-arrow-down::before { content: "📉"; }
.icon-users::before { content: "👥"; }
.icon-settings::before { content: "⚙️"; }
.icon-user::before { content: "👤"; }
.icon-logout::before { content: "🚪"; }
.icon-menu::before { content: "☰"; }
.icon-close::before { content: "✕"; }
.icon-globe::before { content: "🌐"; }
.icon-server::before { content: "🖥️"; }
.icon-clock::before { content: "🕐"; }
.icon-calendar::before { content: "📅"; }
.icon-plus::before { content: "➕"; }
.icon-refresh::before { content: "🔄"; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-end { text-align: right; }
.text-left { text-align: left; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }

.btn-group {
    display: flex;
    gap: 0.5rem;
}

.breadcrumb-nav {
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }

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

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

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

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

.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-muted { color: var(--light-text); }

.bg-primary { background-color: var(--primary-color); }
.bg-success { background-color: var(--success-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-warning { background-color: var(--warning-color); }

.border { border: 1px solid var(--border-color); }
.border-0 { border: none; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

@media (min-width: 768px) {
    .d-md-none { display: none; }
    .d-md-block { display: block; }
    .d-md-flex { display: flex; }
}

/* ==========================================================================
   Login Page Specific Styles
   ========================================================================== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.login-card {
    width: 100%;
    max-width: 400px;
    margin: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-header {
    padding: 2rem;
    text-align: center;
    background: var(--bg-color);
}

.login-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-md);
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.login-subtitle {
    color: var(--light-text);
    font-size: 0.9rem;
}

.login-body {
    padding: 2rem;
}