﻿/* =========================================
   Global Layout
========================================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', sans-serif;
}

main {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--bs-body-bg);
}

/* =========================================
   Header
========================================= */
header {
    background: linear-gradient(135deg, #4b0082, #6a0dad, #8a2be2); /* Deep purple gradient */
    color: #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.6); /* Strong shadow for 3D effect */
    border-bottom: 2px solid rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: background 0.3s, box-shadow 0.3s;
}

    header .container-fluid {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
    }

/* =========================================
   Footer
========================================= */
footer {
    /*background: linear-gradient(90deg, #ff7e5f, #feb47b);*/
    color: #fff;
    padding: 0.5rem 1rem;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================
   Icon Buttons
========================================= */
.icon-button {
    width: 32px;
    height: 32px;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: transform 0.3s, fill 0.3s;
}

    .icon-button:hover {
        transform: scale(1.2) rotate(10deg);
    }

/* =========================================
   Drawer Menu
========================================= */
.offcanvas-body ul {
    padding-left: 0;
}

.offcanvas-body li {
    margin-bottom: 0.5rem;
}

/* =========================================
   Custom Profile Box
========================================= */
.dropdown {
    position: relative; /* Needed for absolute positioning */
}

.custom-profile-box {
    min-width: 220px;
    background: linear-gradient(145deg, #6a0dad, #8a2be2);
    color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    overflow: hidden;
    animation: slideDown 0.3s ease;
    position: absolute !important;
    top: 100%;
    right: 0;
    left: auto !important;
    margin-top: 0.5rem;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.avatar-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    transition: transform 0.3s;
}

.avatar-wrapper:hover .avatar {
    transform: scale(1.1);
}

/* Status Dot */
.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: #4caf50;
    border: 2px solid #fff;
    border-radius: 50%;
}

/* Profile Links */
.profile-links a.btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s, transform 0.3s;
    margin-bottom: 0.3rem;
}

    .profile-links a.btn:hover {
        background: rgba(255,255,255,0.4);
        transform: scale(1.05);
    }

/* Logout button */
.custom-profile-box a.btn-danger {
    border-radius: 8px;
    font-weight: bold;
}

 
/* =========================================
   Responsive Mobile Adjustments
========================================= */
@media (max-width: 576px) {
    .dropdown-menu.custom-profile-box {
        min-width: 180px;
        right: 0.5rem;
    }

    header .container-fluid {
        flex-direction: column;
        align-items: flex-start;
    }

    .icon-button {
        margin-top: 0.3rem;
    }
}

.breadcrumb-nav {
    font-size: 14px; /* Overall breadcrumb font size */
}

.breadcrumb {
    list-style: none;
    display: flex;
    padding: 8px 16px;
    background-color: #f5f5f5; /* Light grey background */
    border-radius: 4px;
    margin: 0;
}

.breadcrumb-item {
    position: relative;
    padding: 0 8px;
}

    .breadcrumb-item + .breadcrumb-item::before {
        content: " / "; /* Separator character */
        padding: 0 8px;
        color: #555;
    }

    .breadcrumb-item a {
        text-decoration: none;
        color: #007bff; /* Link color */
    }

        .breadcrumb-item a:hover {
            text-decoration: underline;
        }

    .breadcrumb-item.active {
        color: #555; /* Non-clickable */
        pointer-events: none;
    }
.badge-custom {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 0.75em;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border-radius: 0.375rem;
    vertical-align: middle;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75em;
    font-weight: bold;
    color: #fff;
    border-radius: 0.375rem;
}

    .badge.primary {
        background-color: #007bff;
    }

    .badge.danger {
        background-color: #dc3545;
    }

    .badge.success {
        background-color: #28a745;
    }

    .badge.warning {
        background-color: #ffc107;
        color: #000;
    }
    .badge.pill {
        border-radius: 9999px;
    }

.background-simple {
    background: linear-gradient(to right, #ff9a9e, #fad0c4, #fad0c4);
}

/* Rainbow-style with many colors */
.background-rainbow {
    background: linear-gradient(to right, #6a0dad, #add8e6);
}