@font-face{
  font-family: NunitoFont1;
  src: url(../font/NunitoFont1.ttf);
}
@font-face{
  font-family: Cairo;
  src: url(../font/Cairo.ttf);
}
:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-bg: #f8f9fc;
    --dark-bg: #1a1c23;
    --light-sidebar: #ffffff;
    --dark-sidebar: #2c2f38;
    --light-text: #5a5c69;
    --dark-text: #ffffff;
    --transition-speed: 0.3s;
    --shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    --shadow-hover: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.2);
}

[data-theme="dark"] {
    --bg-primary: var(--dark-bg);
    --bg-secondary: var(--dark-sidebar);
    --text-primary: var(--dark-text);
    --border-color: rgba(255,255,255,0.1);
    --card-bg: #2d3748;
}

[data-theme="light"] {
    --bg-primary: var(--light-bg);
    --bg-secondary: var(--light-sidebar);
    --text-primary: var(--light-text);
    --border-color: rgba(0,0,0,0.1);
    --card-bg: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
     font-family: NunitoFont1, Cairo;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-speed);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background: linear-gradient(135deg, #06143e 0%, #224abe 100%);
    transition: all var(--transition-speed) ease;
    z-index: 1050;
    box-shadow: var(--shadow);
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.sidebar-brand {
    padding: 1.4rem 1.25rem;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar-brand:hover {
    color: white;
}

.sidebar-brand i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

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

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    margin: 0.125rem 0.75rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all var(--transition-speed) ease;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    /*transform: translateX(3px);*/
}

.nav-item.active {
    background: rgba(255,255,255,0.2);
    color: white;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.nav-item i {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
}

/* Mobile Sidebar */
#mobileSidebar {
    transform: translateX(-100%);
}

#mobileSidebar.show {
    transform: translateX(0);
}

#sidebarOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
    backdrop-filter: blur(2px);
}

#sidebarOverlay.active {
    display: block;
}

/* Top Navbar */
.top-navbar {
    position: sticky;
    top: 0;
    left: 260px;
    width: calc(100% - 260px);
    height: 70px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    z-index: 1030;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow);
}

.top-navbar .container-fluid {
    height: 100%;
}

@media (max-width: 991.98px) {
    .top-navbar {
        left: 0;
        width: 100%;
    }
}

/* Main Content */
.main-content {
    margin-left: 260px;
    margin-top: 20px;
    padding: 2rem;
    min-height: calc(100vh - 70px);
    transition: margin var(--transition-speed);
}

@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
}

/* Cards */
.stat-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all var(--transition-speed) ease;
    border: none;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-primary { background: linear-gradient(135deg, var(--primary-color), #224abe); color: white; }
.icon-success { background: linear-gradient(135deg, var(--success-color), #17a673); color: white; }
.icon-info { background: linear-gradient(135deg, var(--info-color), #2c9faf); color: white; }
.icon-warning { background: linear-gradient(135deg, var(--warning-color), #dda20a); color: white; }

/* Charts */
.chart-container {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all var(--transition-speed);
}

.chart-container:hover {
    box-shadow: var(--shadow-hover);
}

/* Activity Feed */
.activity-table {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.activity-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.activity-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* Quick Actions */
.quick-actions {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.action-btn {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    transition: all var(--transition-speed);
    margin: 0.25rem;
    font-weight: 500;
}

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

/* System Status */
.system-status {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Theme Toggle */
/*.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}*/

/* Theme sign-out */
.theme-toggle-sign-out {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    /*transform: rotate(180deg);*/
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

/* Buttons */
/*.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #224abe);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(78, 115, 223, 0.3);
}
*/
/*.btn-outline-secondary {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    background: transparent;
}*/

/*.btn-outline-secondary:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}*/
/* Card profile */
/*.profile-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}*/

/*.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}*/

.card-header {
    background: linear-gradient(135deg, #06143e 0%, #224abe 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

/*.avatar-container {
    position: relative;
    margin-bottom: 1rem;
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    object-fit: cover;
}

.student-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}*/

.card-body {
    padding: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 7px;
    border-left: 3px solid #06143e;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.info-icon {
    font-size: 1.2rem;
    color: #667eea;
    margin-right: 1rem;
    min-width: 24px;
}

.info-label {
    font-weight: 600;
    color: #495057;
    /*margin-right: 0.5rem;*/
    min-width: 80px;
}

.info-value {
    color: #6c757d;
    font-weight: 500;
}

.badge-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: orange;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
/*Tabs*/
.nav-tabs .nav-link.active {
  border: 1px solid #06143e !important;
  background: #06143e !important;
  color: white !important;
}

.nav-tabs .nav-link:not(.active) {
  border: 1px solid #06143e !important;
  background: #f8f9fa !important;
  color: #6c757d !important;
}
/*Zone file*/
.pdf-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #f8f9fa;
    position: relative;
}

.pdf-upload-area:hover {
    border-color: #06143e;
    background-color: rgba(13, 110, 253, 0.05);
}

.pdf-upload-area.dragover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
}

.pdf-icon {
    font-size: 3rem;
    color: #06143e;
    margin-bottom: 1rem;
}

.pdf-upload-area:hover .pdf-icon {
    color: #06143e;
}

.file-info {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    color: #0c5460;
}

.file-info.show {
    display: block;
}

.remove-file {
    margin-left: 0.5rem;
    color: #dc3545;
    cursor: pointer;
}

.remove-file:hover {
    color: #c82333;
}

/* Style pour l'input file caché */
#pdfUpload {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}
/*Button*/
#buttons-file{
    background-color: #06143e;
    border: none;
    color: #FFF;
}
#buttons{
    background-color: #06143e;
    border: none;
    color: #FFF;
}
/*Style section de connection*/
.gradient-custom-2 {
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
background: linear-gradient(135deg, #06143e 0%, #224abe 100%);
}

.gradient-form {
    background-color: #eee;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.card {
    border-radius: 0.3rem;
    overflow: hidden;
}

.gradient-custom-2 {
    border-radius: 0;
}

@media (min-width: 768px) {
  .gradient-custom-2 {
/*      border-top-right-radius: 0.3rem;*/
/*      border-bottom-right-radius: 0.3rem;*/
  }
}

@media (max-width: 767.98px) {
    .gradient-custom-2 {
        border-radius: 0 !important;
        padding: 2rem !important;
    }
    .card-body {
        padding: 2rem !important;
    }
    .btn-block {
        width: 100%;
    }
}
.gradient-custom {
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
background: linear-gradient(135deg, #06143e 0%, #224abe 100%);
}

/*Zone upload justificatif*/
.pdf-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #f8f9fa;
    position: relative;
}

.pdf-upload-area:hover {
    border-color: #0f5075;
    background-color: rgba(13, 110, 253, 0.05);
}

.pdf-upload-area.dragover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
}

.pdf-icon {
    font-size: 3rem;
    color: #0f5075;
    margin-bottom: 1rem;
}

.pdf-upload-area:hover .pdf-icon {
    color: #0f5075;
}

.file-info {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    color: #0c5460;
}

.file-info.show {
    display: block;
}

.remove-file {
    margin-left: 0.5rem;
    color: #dc3545;
    cursor: pointer;
}

.remove-file:hover {
    color: #c82333;
}

/* Style pour l'input file caché */
#pdfUpload {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}
