/* Custom CSS for Veridia */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #c0392b;
    --light-gray: #ecf0f1;
    --dark-gray: #95a5a6;
    --text-color: #2c3e50;
    --sidebar-width: 250px;
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f6fa;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Styles */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1040;
}

.navbar-brand {
    font-weight: 500;
    color: white !important;
}

.navbar-logo {
    height: 32px;
    width: auto;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: white;
    background-color: var(--accent-color);
    border-radius: 4px;
}

.navbar-spacer {
    height: 56px;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.login-language-wrapper {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 2000;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.login-header {
    background: var(--primary-color);
    border-radius: 15px 15px 0 0;
    padding: 2rem;
    text-align: center;
}

.login-header img {
    width: 80px;
    margin-bottom: 1rem;
}

.language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ecf0f1;
    font-size: 0.8rem;
}

.language-switcher-icon {
    font-size: 0.85rem;
}

.language-toggle {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.language-toggle:focus {
    outline: none;
    box-shadow: none;
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.4rem;
    list-style: none;
    padding: 0.25rem 0;
    background: #1e2a36;
    border-radius: 0.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    min-width: 130px;
    display: none;
    z-index: 2100;
}

.language-menu.show {
    display: block;
}

.language-menu-item {
    padding: 0.35rem 0.85rem;
    color: #ecf0f1;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}

.language-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.language-menu-item.active {
    background: rgba(52, 152, 219, 0.35);
}

.language-switcher-navbar {
    margin-top: 0.2rem;
}

.login-form {
    padding: 2rem;
}

.form-control {
    border-radius: 8px;
    border: 2px solid var(--light-gray);
    padding: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Dashboard Styles */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-color);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    transition: all 0.3s ease;
    z-index: 1050;
}

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

.sidebar-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
}

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

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

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar .nav-link.active {
    background: var(--accent-color);
    color: white;
}

/* Main Content Area */
.main-content {
    margin-left: 0;
    padding: 2rem;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

/* Cards */
.dashboard-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

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

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

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

/* Status Indicators */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Table Styles */
.custom-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 1rem;
}

.custom-table td {
    padding: 1rem;
    vertical-align: middle;
}

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

.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}


/* Responsive Design */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 15px rgba(0,0,0,0.3);
    }
    
    .main-content {
        margin-left: 0;
    }

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

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

    .page-header {
        padding: 20px 0;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Custom Button Styles */
.btn-custom-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-custom-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Staff list page styles */
.stats-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #4A90E2;
}

.data-table {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.table-header {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
}

.employee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 10px;
}

.search-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* Assistant chatbot styles */
.assistant-chat-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    cursor: pointer;
}

.assistant-chat-button:hover {
    background: var(--primary-color);
}

.assistant-chat-panel {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 340px;
    max-height: 520px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1100;
}

.assistant-chat-panel.open {
    display: flex;
}

.assistant-chat-header {
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.assistant-chat-title {
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.assistant-chat-body {
    padding: 0.75rem 1rem;
    background: #f5f6fa;
    overflow-y: auto;
    flex: 1;
}

.assistant-chat-footer {
    padding: 0.5rem 0.75rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid #dee2e6;
    background: #fff;
}

.assistant-chat-input {
    font-size: 0.9rem;
}

.assistant-chat-send {
    padding: 0.4rem 0.75rem;
}

.assistant-chat-message {
    margin-bottom: 0.5rem;
    display: flex;
}

.assistant-chat-message-user {
    justify-content: flex-end;
}

.assistant-chat-message-assistant {
    justify-content: flex-start;
}

.assistant-chat-message-content {
    max-width: 85%;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
}

.assistant-chat-message-user .assistant-chat-message-content {
    background: var(--accent-color);
    color: #fff;
    border-bottom-right-radius: 2px;
}

.assistant-chat-message-assistant .assistant-chat-message-content {
    background: #fff;
    color: var(--text-color);
    border-bottom-left-radius: 2px;
    border: 1px solid #e1e4ea;
}

.assistant-chat-message.assistant-chat-message-system .assistant-chat-message-content {
    background: #fff3cd;
    border-color: #ffeeba;
}

.assistant-chat-message-loading .assistant-chat-message-content {
    font-style: italic;
    opacity: 0.8;
}

@media (max-width: 575.98px) {
    .assistant-chat-panel {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 84px;
    }

    .assistant-chat-button {
        bottom: 16px;
        right: 16px;
    }
}
