/* 
 * Visa Registration Tracking System
 * Main Stylesheet
 */

/* ===== VARIABLES ===== */
:root {
    /* Color Scheme */
    --primary-color: #003366;      /* Deep Blue */
    --secondary-color: #1ABC9C;    /* Teal */
    --accent-color: #F1C40F;       /* Gold */
    --light-gray: #F5F6FA;         /* Light Gray */
    --white: #FFFFFF;              /* White */
    --dark-gray: #2C3E50;          /* Dark Gray for text */
    
    /* Status Colors */
    --status-registered: #6c757d;      /* Gray */
    --status-medicals-scheduled: #007bff; /* Blue */
    --status-medicals-completed: #1ABC9C; /* Teal */
    --status-interview-scheduled: #6f42c1; /* Purple */
    --status-interview-completed: #fd7e14; /* Orange */
    --status-approved: #28a745;     /* Green */
    --status-completed: #F1C40F;     /* Gold */
    
    /* Typography */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Inter', sans-serif;
    
    /* Spacing */
    --section-spacing: 2rem;
    --card-spacing: 1.5rem;
}

/* ===== GLOBAL STYLES ===== */
body {
    font-family: var(--body-font);
    color: var(--dark-gray);
    background-color: var(--light-gray);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--primary-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.btn-primary:hover, .btn-primary:focus {
    background-color: #00264d; /* Darker shade of primary */
    border-color: #00264d;
}

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

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #16a085; /* Darker shade of secondary */
    border-color: #16a085;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    background-color: var(--light-gray);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-container {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.login-logo {
    max-width: 120px;
    height: auto;
}

.login-tabs .nav-link {
    color: var(--dark-gray);
    border-radius: 5px;
}

.login-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.login-form label {
    font-weight: 500;
}

.forgot-link {
    font-size: 0.9rem;
}

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

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: #fff;
    color: var(--dark-gray);
    padding: 0;
    position: fixed;
    height: 100%;
    left: 0;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-header .logo h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.sidebar-close-btn {
    color: var(--dark-gray);
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
}

.sidebar-toggle-btn {
    color: var(--dark-gray);
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-menu {
    padding: 15px 0;
}

/* Menu Category */
.menu-category {
    padding: 0 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
}

/* Menu Section */
.menu-section {
    margin-bottom: 5px;
}

.menu-item {
    padding: 12px 20px;
    color: var(--dark-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
    color: var(--primary-color);
}

.menu-item.active {
    background-color: #eef2ff;
    color: var(--primary-color);
    font-weight: 500;
}

.menu-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-right: 12px;
}

.menu-icon.crypto-icon {
    background-color: #eef2ff;
    color: var(--primary-color);
}

/* Submenu */
.submenu {
    padding: 5px 0 5px 48px;
}

.submenu-item {
    padding: 8px 20px;
    color: var(--dark-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin-bottom: 2px;
}

.submenu-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.submenu-item.active {
    background-color: #f8f9fa;
    font-weight: 500;
}

.submenu-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
}

.submenu-indicator.blue {
    background-color: #4285f4;
}

.submenu-indicator.orange {
    background-color: #ff9800;
}

.submenu-indicator.green {
    background-color: #34a853;
}

.submenu-indicator.red {
    background-color: #ea4335;
}

.content-area {
    flex: 1;
    margin-left: 280px;
    padding: 1rem;
    transition: all 0.3s;
}

.main-wrapper .sidebar .sidebar-header .logo img:last-child{
    display: none;
}

/* When sidebar is collapsed */
.main-wrapper.sidebar-collapsed .sidebar {
    width: 80px;
}

.main-wrapper.sidebar-collapsed .content-area {
    margin-left: 80px;
}

.main-wrapper.sidebar-collapsed .sidebar .sidebar-header .logo h2,
.main-wrapper.sidebar-collapsed .sidebar .sidebar-header .logo span {
    display: none;
}

.main-wrapper.sidebar-collapsed .sidebar .sidebar-header {
    justify-content: center;
}

.main-wrapper.sidebar-collapsed .sidebar .sidebar-header .logo img:first-child{
    display: none;
}

.main-wrapper.sidebar-collapsed .sidebar .sidebar-header .logo img:last-child{
    display: inline-block;
}

.main-wrapper.sidebar-collapsed .sidebar .menu-item span,
.main-wrapper.sidebar-collapsed .sidebar .nav-link span,
.main-wrapper.sidebar-collapsed .sidebar .menu-item .fa-chevron-right,
.main-wrapper.sidebar-collapsed .sidebar .menu-item .fa-chevron-down,
.main-wrapper.sidebar-collapsed .sidebar .menu-category {
    display: none;
}

.main-wrapper.sidebar-collapsed .sidebar .menu-item,
.main-wrapper.sidebar-collapsed .sidebar .nav-link {
    justify-content: center;
}

.main-wrapper.sidebar-collapsed .sidebar .submenu {
    display: none !important;
}


/* Navbar Styles */
.navbar {
    padding: 0.5rem 1.5rem;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-container {
    max-width: 400px;
    width: 100%;
}

.search-container .input-group {
    border-radius: 50px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.search-container .input-group-text {
    border-radius: 50px 0 0 50px;
    padding: 0.5rem 1rem;
}

.search-container .form-control {
    border-radius: 0 50px 50px 0;
    padding: 0.5rem 1rem;
}

.navbar .nav-item {
    margin: 0 0.25rem;
}

.navbar .nav-link {
    padding: 0.5rem;
    color: var(--dark-gray);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.navbar .nav-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
}

.notification-dropdown {
    width: 320px;
    padding: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
}

.notification-dropdown .dropdown-header {
    padding: 1rem;
    font-weight: 600;
    border-bottom: 1px solid #f1f1f1;
}

.notification-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f1f1;
}

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

.user-avatar {
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.content-area-expanded {
    margin-left: 70px;
}

.top-navbar {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar-header {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    max-width: 100px;
    height: auto;
}

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

.nav-sidebar .nav-item {
    margin-bottom: 0.5rem;
}

.nav-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.nav-sidebar .nav-link:hover, 
.nav-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-sidebar .nav-link i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* ===== DASHBOARD ===== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: var(--section-spacing);
}

.stat-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(26, 188, 156, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.stat-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.stat-info p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.chart-container {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: var(--section-spacing);
}

.chart-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.activity-feed {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.activity-feed h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.activity-item {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(26, 188, 156, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1rem;
    color: var(--secondary-color);
}

.activity-details h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.activity-details p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.85rem;
}

.activity-time {
    font-size: 0.75rem;
    color: #adb5bd;
}

/* ===== CLIENT MANAGEMENT ===== */
.filter-panel {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.client-table {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.client-table .table {
    margin-bottom: 0;
}

.client-table th {
    background-color: var(--light-gray);
    border-top: none;
    font-weight: 600;
    color: var(--primary-color);
}

.status-badge {
    padding: 0.35em 0.65em;
    border-radius: 50rem;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.status-registered {
    background-color: var(--status-registered);
    color: white;
}

.status-medicals-scheduled {
    background-color: var(--status-medicals-scheduled);
    color: white;
}

.status-medicals-completed {
    background-color: var(--status-medicals-completed);
    color: white;
}

.status-interview-scheduled {
    background-color: var(--status-interview-scheduled);
    color: white;
}

.status-interview-completed {
    background-color: var(--status-interview-completed);
    color: white;
}

.status-approved {
    background-color: var(--status-approved);
    color: white;
}

.status-completed {
    background-color: var(--status-completed);
    color: white;
}

/* ===== CLIENT DETAIL PAGE ===== */
.client-profile {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.client-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.client-info h3 {
    margin-bottom: 0.5rem;
}

.client-info p {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.status-tracker {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.status-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
}

.status-stepper::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--light-gray);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 1.25rem;
    color: var(--dark-gray);
    border: 2px solid var(--light-gray);
}

.step.active .step-icon {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.step.completed .step-icon {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
}

.document-section {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.document-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary-color);
}

.document-info {
    flex: 1;
}

.document-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.document-info p {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.action-panel {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

/* ===== BOOKING MANAGEMENT ===== */
.calendar-view {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.booking-list {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

/* ===== CLIENT PORTAL ===== */
.welcome-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--primary-color);
}

.welcome-card h3 {
    margin-bottom: 1rem;
}

.progress-container {
    margin-bottom: 1rem;
}

.progress-bar {
    background-color: var(--secondary-color);
}

.update-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--accent-color);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-link-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.quick-link-card:hover {
    transform: translateY(-5px);
}

.quick-link-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
    background-color: var(--light-gray);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    top: 5px;
}

.timeline-content {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

.timeline-date {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-text {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== NOTIFICATIONS PAGE ===== */
.notification-list {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.notification-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: flex-start;
    transition: background-color 0.3s ease;
}

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

.notification-item:hover {
    background-color: rgba(245, 246, 250, 0.5);
}

.notification-item.unread {
    background-color: rgba(0, 51, 102, 0.05);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(26, 188, 156, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.notification-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.notification-time {
    font-size: 0.75rem;
    color: #adb5bd;
}

.notification-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin-left: 1rem;
    flex-shrink: 0;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .sidebar {
        left: -280px;
    }

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

    .sidebar.show {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

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

    .main-wrapper.sidebar-collapsed .sidebar {
        left: -280px;
    }

    .main-wrapper.sidebar-collapsed .content-area {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .status-stepper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .status-stepper::before {
        top: 0;
        bottom: 0;
        left: 25px;
        right: auto;
        width: 2px;
        height: 100%;
    }
    
    .step {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .step-icon {
        margin: 0 1rem 0 0;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 1.5rem;
    }
    
    .top-navbar {
        padding: 0.5rem 1rem;
    }
    
    .content-area {
        padding: 0.5rem;
    }
}