﻿@font-face {
    font-family: 'Iran Sans';
    src: url('/assets/Fonts/irsans.ttf') format('.ttf'), url('/assets/Fonts/iran-sans-300.woff') format('woff'), url('/assets/Fonts/iran-sans-300.woff2') format('woff2'), url('/assets/Fonts/iran-sans-500.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'vazir';
    src: url('fonts/vazir-300.ttf') format('.ttf'), url('fonts/vazir-300.woff') format('woff'), url('fonts/vazir-300.woff2') format('woff2'), url('fonts/vazir-500.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
:root {
    --primary-yellow: #FFD700;
    --dark-yellow: #E6C200;
    --primary-black: #1A1A1A;
    --secondary-black: #2D2D2D;
    --light-gray: #F8F9FA;
    --dark-gray: #6C757D;
    --white: #FFFFFF;
    --FONT1: 'Iran sans','vazir', Geneva, Verdana;
}

* {
    font-family: var(--FONT1);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--FONT1);
    background-color: #f5f5f5;
    color: var(--primary-black);
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background: linear-gradient(to right, var(--primary-black), var(--secondary-black));
    color: var(--primary-yellow);
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 70px;
}

    .header h1 {
        font-weight: 700;
        font-size: 1.5rem;
        margin: 0;
    }

@media (min-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }
}

.header-icons i {
    font-size: 1.2rem;
    margin-left: 15px;
    cursor: pointer;
    transition: color 0.3s;
}

@media (min-width: 768px) {
    .header-icons i {
        font-size: 1.3rem;
        margin-left: 20px;
    }
}

.header-icons i:hover {
    color: var(--white);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    font-weight: bold;
    flex-shrink: 0;
}

/* Hamburger Menu Button */
.hamburger-menu {
    background: none;
    border: none;
    color: var(--primary-yellow);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

    .hamburger-menu:hover {
        color: var(--white);
    }

/* Sidebar Styles */
.sidebar {
    background-color: var(--primary-black);
    color: var(--white);
    position: fixed;
    top: 70px;
    right: -280px;
    width: 280px;
    height: calc(100vh - 70px);
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    z-index: 1020;
    overflow-y: auto;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.2);
}

    .sidebar.active {
        right: 0;
    }

@media (min-width: 992px) {
    .sidebar {
        right: 0;
        width: 280px;
        position: fixed;
        height: calc(100vh - 70px);
        top: 70px;
    }
}

.sidebar .nav-link {
    color: #ccc;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    text-decoration: none;
}

    .sidebar .nav-link:hover, .sidebar .nav-link.active {
        color: var(--primary-yellow);
        background-color: rgba(255, 215, 0, 0.1);
        border-right: 4px solid var(--primary-yellow);
    }

    .sidebar .nav-link i {
        font-size: 1.2rem;
        width: 25px;
    }

/* Overlay for mobile menu */
.sidebar-overlay {
    position: fixed;
    top: 70px;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1010;
    display: none;
}

    .sidebar-overlay.active {
        display: block;
    }

@media (min-width: 992px) {
    .sidebar-overlay {
        display: none !important;
    }
}

/* Main Content Styles */
.main-content {
    padding: 20px;
    margin-top: 70px;
    min-height: calc(100vh - 140px);
    transition: all 0.3s;
}

@media (min-width: 992px) {
    .main-content {
        padding: 25px;
        margin-right: 280px;
        margin-top: 70px;
    }
}

.page-title {
    color: var(--primary-black);
    border-bottom: 3px solid var(--primary-yellow);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
}

/* Stat Cards */
.stat-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border-top: 4px solid var(--primary-yellow);
    transition: transform 0.3s;
    height: 100%;
}

    .stat-card:hover {
        transform: translateY(-5px);
    }

    .stat-card i {
        font-size: 2.2rem;
        color: var(--primary-yellow);
    }

@media (min-width: 768px) {
    .stat-card i {
        font-size: 2.5rem;
    }
    
}

.stat-card .count {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-black);
}

@media (min-width: 768px) {
    .stat-card .count {
        font-size: 2rem;
    }
}

.stat-card .label {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Table Styles */
.custom-table {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow-x: auto;
}

    .custom-table table {
        min-width: 600px;
        width: 100%;
    }

    .custom-table thead {
        background-color: var(--primary-black);
        color: var(--primary-yellow);
    }

    .custom-table th {
        border: none;
        padding: 15px 12px;
        font-weight: 600;
        white-space: nowrap;
    }

    .custom-table td {
        padding: 12px;
        border-bottom: 1px solid #eee;
        vertical-align: middle;
    }

    .custom-table tbody tr:hover {
        background-color: rgba(255, 215, 0, 0.05);
    }

/* Button Styles */
.btn-yellow {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

    .btn-yellow:hover {
        background-color: var(--dark-yellow);
        color: var(--primary-black);
    }

.btn-black {
    background-color: var(--primary-black);
    color: var(--primary-yellow);
    border: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

    .btn-black:hover {
        background-color: #000;
        color: var(--primary-yellow);
    }

/* Form Styles */
.custom-form {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    height: 100%;
}

@media (min-width: 768px) {
    .custom-form {
        padding: 25px;
    }
}

.form-label {
    font-weight: 400;
    font-size:12px;
    color: var(--primary-black);
    margin-bottom: 8px;
}

.form-control:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

/* Notification Board */
.notification-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    border-right: 4px solid var(--primary-yellow);
}

.notification-date {
    font-size: 0.85rem;
    color: var(--dark-gray);
}

/* Footer Styles */
.footer {
    background: linear-gradient(to right, var(--primary-black), var(--secondary-black));
    color: var(--primary-yellow);
    padding: 15px 0;
    text-align: center;
    font-size: 0.85rem;
    position: relative;
    z-index: 1000;
    margin-top: 20px;
}

@media (min-width: 992px) {
    .footer {
        margin-right: 280px;
    }
}

/* Tab Content Styles */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .tab-content.active {
        display: block;
        opacity: 1;
        animation: fadeIn 0.5s;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Message styles */
.message-item {
    background-color: var(--white);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-right: 3px solid var(--primary-yellow);
}

.message-sender {
    font-weight: bold;
    color: var(--primary-black);
}

.message-time {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

/* Status badges */
.badge-approved, .badge-pending, .badge-rejected {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-approved {
    background-color: #d4edda;
    color: #155724;
}

.badge-pending {
    background-color: #fff3cd;
    color: #856404;
}

.badge-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-yellow);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--dark-yellow);
    }

/* Mobile optimizations */
.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (min-width: 768px) {
    .mobile-header-actions {
        display: none;
    }
}

/* Action buttons in tables */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Improved responsive tables */
@media (max-width: 767px) {
    .table-responsive-custom {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .action-buttons {
        flex-direction: column;
    }

        .action-buttons .btn {
            width: 100%;
        }
}

/* Search and filter section */
.search-filter-section {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Calendar in leave section */
.calendar-table {
    width: 100%;
}

    .calendar-table th, .calendar-table td {
        text-align: center;
        padding: 10px 5px;
        border: 1px solid #dee2e6;
    }

    .calendar-table .leave-day {
        background-color: rgba(255, 215, 0, 0.2);
        font-weight: bold;
    }

/* Message area */
.message-area {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .message-area {
        height: 500px;
    }
}

/* Utility classes */
.d-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.mb-4-mobile {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .mb-4-mobile {
        margin-bottom: 0;
    }
}


