/* ===========================
   GLOBAL STYLES
   =========================== */
   body {
    background: #f5f7fa;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: #007bff;
}

.rounded-circle { width: 100% ;}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
    border-bottom: 1px solid #e5e5e5;
    height: 60px;
}

.navbar-brand {
    font-weight: 600;
    font-size: 18px;
}

.navbar img {
    height: 35px;
}

/* Menu button */
#sidebarCollapse {
    border-radius: 6px;
}

/* ===========================
   SIDEBAR
   =========================== */
#sidebar {
   position: fixed; /* keep it on top */
    top: 0;
    left: -300px; /* hidden by default */
    width: 300px;
    height: 100%;
    background: #343a40;
    transition: left 0.3s ease;
    z-index: 1050; /* above content */
}

#sidebar ul.components {
    padding: 0;
    list-style: none;
}

#sidebar ul li {
    padding: 2px 20px;
    font-size: 15px;
}

#sidebar ul li a {
    display: block;
    color: #333;
    transition: 0.2s;
}

#sidebar ul li a:hover {
    background: #e9ecef;
    border-radius: 6px;
    color: #000;
}

#sidebar ul li i {
    width: 20px;
    opacity: 0.8;
}

/* Sidebar hidden (mobile) */
#sidebar.active {
    left: 0; /* show sidebar */
}

/* ===========================
   OVERLAY (mobile)
   =========================== */
/* Overlay for dimming */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: none;
    z-index: 1040;
}

.overlay.active {
    display: block;
}

/* ===========================
   PAGE CONTENT
   =========================== */
#content {
     margin: 0 auto;
    width: 100%;
    max-width: 900px;
    margin-top: 30px;
    transition: all 0.3s;
    padding: 20px;
    position: relative; /* don't shift */
    transition: none; /* optional */
}

#content.active {
    margin-left: 0;
}

/* ===========================
   CARDS & BLOCKS
   =========================== */
.card {
    border-radius: 10px;
}

.card-header {
    font-weight: 600;
    font-size: 15px;
}

/* ===========================
   FILE ICONS
   =========================== */
.file-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}
.file-name { 
 font-size: 13px;
 line-height: 18px; ;
}
/* ===========================
   FOLDER GRID
   =========================== */
.folder-item {
    transition: 0.2s;
    cursor: pointer;
}

.folder-item:hover {
    transform: translateY(-5px);
}

/* ===========================
   LOGO
   =========================== */
.logo {
    max-width: 250px;
    padding: 30px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
    background-color: #01386e;
    border-color: #01386e;
}

/* ===========================
   NOTIFICATIONS
   =========================== */
notify {
    display: none;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
    #sidebar {
        margin-left: -300px;
    }

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

    #content {
        margin-left: 0;
    }

    #content.active {
        margin-left: 250px;
    }
}

/* ===========================
   GLOBAL PAGE LOADER
   =========================== */
.loader-overlay {
    display: none; /* caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.rotating-loader {
    width: 60px;
    height: 60px;
    border: 6px solid #ddd;
    border-top-color: #28a745;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



/* PIN INPUT FIELDS */
.pin-inputs {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.pin-inputs input {
    width: 35px;
    height: 40px;
    margin: 2px;
    text-align: center;
    font-size: 1.3rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: .2s;
}

.pin-inputs input:focus {
    border-color: #28a745;
    box-shadow: 0 0 6px #28a745;
    outline: none;
}

.pin-inputs input.filled {
    border-color: #28a745;
    background: #eaffea;
}
