/* Corporate Admin Template - Blue & White Theme */

/* Color Variables - Blue & White Theme */
:root {
    --primary-blue: #2563EB;
    --secondary-blue: #3B82F6;
    --light-blue: #60A5FA;
    --dark-blue: #1E40AF;
    --darker-blue: #1E3A8A;
    --dark-bg: #1F2937;
    --sidebar-dark: #1E293B;
    --sidebar-light: #334155;
    --light-gray: #F8FAFC;
    --border-color: #E2E8F0;
    --text-muted: #64748B;
    --shadow-color: rgba(37, 99, 235, 0.15);
    --white: #FFFFFF;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    overflow-x: hidden;
}

/* Wrapper Layout */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    min-width: 280px;
    max-width: 280px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--light-blue) 100%);
    color: #fff;
    transition: all 0.3s;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    box-shadow: 3px 0 15px var(--shadow-color);
}

.sidebar.active {
    margin-left: -280px;
}

.sidebar-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid var(--white);
}

.sidebar-header h3 {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header h3 i {
    color: var(--white);
}

/* Logo Styling */
.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header .logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
    padding: 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-header .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.sidebar-header .logo-text {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
}

/* Navigation Links */
.sidebar ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar ul li a {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar ul li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-left-color: var(--white);
    transform: translateX(5px);
}

.sidebar ul li.active a {
    background-color: var(--white);
    color: var(--primary-blue);
    border-left-color: var(--dark-blue);
    font-weight: 600;
}

.sidebar ul li a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: var(--white);
}

.sidebar ul li.active a i {
    color: var(--primary-blue);
}

/* Dropdown Styling */
.sidebar ul ul li a {
    padding-left: 40px;
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.1);
}

.sidebar ul ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Content Area */
.content {
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
    transition: all 0.3s;
    background-color: var(--light-gray);
}

/* Top Navigation */
.custom-navbar {
    background-color: var(--white) !important;
    border-bottom: 3px solid var(--primary-blue);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.custom-navbar .btn-outline-light {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

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

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s ease;
    background: var(--white);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-radius: 12px 12px 0 0 !important;
    border: none;
    font-weight: 600;
}

/* Border Left Utilities */
.border-left-primary {
    border-left: 4px solid var(--primary-blue) !important;
}

.border-left-success {
    border-left: 4px solid var(--light-blue) !important;
}

.border-left-info {
    border-left: 4px solid var(--secondary-blue) !important;
}

.border-left-warning {
    border-left: 4px solid var(--dark-blue) !important;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

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

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

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

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

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

.btn-outline-success {
    color: var(--light-blue);
    border-color: var(--light-blue);
}

.btn-outline-success:hover {
    background-color: var(--light-blue);
    border-color: var(--light-blue);
    color: var(--white);
}

/* Stats Cards */
.text-xs {
    font-size: 0.8rem;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.text-success {
    color: var(--light-blue) !important;
}

.text-info {
    color: var(--secondary-blue) !important;
}

.text-warning {
    color: var(--dark-blue) !important;
}

.text-gray-800 {
    color: var(--dark-bg) !important;
}

/* Chart Areas */
.chart-area {
    position: relative;
    height: 350px;
}

.chart-placeholder {
    height: 100%;
    border-radius: 8px;
    border: 2px dashed var(--border-color);
    background: var(--light-gray);
}

.chart-pie {
    position: relative;
    height: 245px;
}

/* Table Styles */
.table {
    margin-bottom: 0;
    background: var(--white);
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--white);
    background-color: var(--primary-blue) !important;
}

.table tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

/* Login Page Styles */
.login-body {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--light-blue) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    padding: 20px;
}

.login-card {
    max-width: 450px;
    margin: 0 auto;
}

/* Login Brand */
.login-brand {
    text-align: center;
    margin-bottom: 30px;
}

.login-brand-icon {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 10px;
}

.brand-title {
    color: var(--white);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 5px;
}

.brand-subtitle {
    color: var(--white);
    font-weight: 500;
    font-size: 1.1rem;
    opacity: 0.9;
}

.login-form-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    background: var(--white);
}

.form-control {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 12px 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-label i {
    color: var(--primary-blue);
    margin-right: 5px;
}

.input-group .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-muted);
}

.input-group .btn-outline-secondary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.btn-login {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-social {
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
}

.btn-social:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

/* Form Check */
.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.dropdown-item:hover {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
}

/* Badge */
.badge {
    font-size: 0.75rem;
}

.badge.bg-success {
    background-color: var(--light-blue) !important;
}

.badge.bg-primary {
    background-color: var(--primary-blue) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -280px;
    }

    .sidebar.active {
        margin-left: 0;
    }

    .content {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-header {
        padding: 15px;
    }

    .sidebar ul li a {
        padding: 12px 15px;
    }

    .sidebar ul ul li a {
        padding-left: 30px;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .login-brand-icon {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card-body {
        padding: 15px;
    }

    .btn-group .btn {
        padding: 5px 8px;
        font-size: 0.875rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* User Avatar Styles */
.user-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    border-radius: 50%;
}

.user-avatar i {
    font-size: 1rem;
}

/* Nav Pills for Settings */
.nav-pills .nav-link {
    color: var(--text-muted);
    background: none;
    border-radius: 0;
    transition: all 0.3s;
}

.nav-pills .nav-link:hover {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
}

.nav-pills .nav-link.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
}

/* Form Text */
.form-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Table Enhancements */
.table th {
    background-color: var(--primary-blue) !important;
    border-color: var(--dark-blue);
}

.table td {
    vertical-align: middle;
}

.table .btn-group .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

/* Checkbox Styling */
.form-check-input {
    border: 2px solid var(--border-color);
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* Search and Filter Controls */
.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Tab Content */
.tab-content {
    padding: 20px 0;
}

/* Profile Page Specific Styles */
.profile-photo-container {
    position: relative;
}

.profile-photo-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-photo-wrapper:hover {
    transform: scale(1.05);
}

.profile-photo-wrapper.drag-over {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.profile-photo-wrapper img {
    transition: all 0.3s ease;
    border: 4px solid var(--border-color);
}

.profile-photo-wrapper:hover img {
    border-color: var(--primary-blue);
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    padding-left: 30px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-blue), var(--light-blue));
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 25px;
}

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--border-color);
}

.timeline-content {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    border-left: 4px solid var(--primary-blue);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    border-color: transparent var(--white) transparent transparent;
}

.timeline-content h6 {
    color: var(--dark-bg);
    font-weight: 600;
}

/* Profile Tabs Styling */
.nav-tabs .nav-link {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 10px;
    border-radius: 8px 8px 0 0;
}

.nav-tabs .nav-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
    border: none;
}

.nav-tabs .nav-link.active {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 8px 8px 0 0;
}

.nav-tabs .nav-link i {
    margin-right: 8px;
}

/* Tab Content Animation */
.tab-pane {
    transition: all 0.3s ease;
}

/* Spinner */
.spinner-border {
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: rgba(96, 165, 250, 0.1);
    color: var(--primary-blue);
    border-left: 4px solid var(--light-blue);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border-left: 4px solid #EF4444;
}

/* Utility Classes */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--light-blue), var(--secondary-blue));
}

.shadow-blue {
    box-shadow: 0 4px 6px var(--shadow-color);
}

.border-blue {
    border-color: var(--primary-blue) !important;
}

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 6px 12px var(--shadow-color);
    transition: box-shadow 0.3s ease;
}