@media print {
    .col-md-3 {
        display: none !important; /* Hides col-md-3 in print */
    }

    .col-md-9 {
        width: 100% !important; /* Makes col-md-9 full width in print */
        display: block !important; /* Ensure it takes full width */
    }
    .print-img-container {
        width: 100% !important; /* Ensures full width in print */
        display: block !important;
         /* Ensures each image starts on a new page */
    }

    .print-img {
        max-width: 100% !important; /* Ensures image takes full width */
        height: auto !important; /* Maintain aspect ratio */
    }

    .d-print-none {
        display: none !important; /* Hides non-image files when printing */
    }
}

/* Root Variables for Easy Theme Customization */
:root {
    --primary-color: #007bff;
    --secondary-color: #17a2b8;
    --bg-color: #f5f7fa;
    --text-color: #333;
    --semi-black: rgba(0, 0, 0, 0.75);
    --border-color: #e0e0e0;
    --hover-bg: #e3f2fd;
    --card-bg: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ---- Global Styles ---- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.modal-backdrop {
    z-index: 1040 !important; /* Lower than modal (1050), but above header */
}

.modal {
    z-index: 1055 !important; /* Ensure modal is above everything */
}

/* Initially, keep the header visible */
header {
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1050;
    background: white;
    transition: top 0.3s ease-in-out;
}
/* ---- Modal Styling ---- */
.modal-body {
    max-height: 500px;
    overflow-y: auto;
    background-color: var(--card-bg);
    border-radius: 5px;
    padding: 10px;
}

/* ---- Notification Styles ---- */
.notification-item {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 12px;
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: var(--shadow);
}

    .notification-item:hover {
        background: var(--hover-bg);
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
    }

/* Profile Icon */
.profile-icon {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    font-size: 18px;
}

/* Message Content */
.message-content {
    flex: 1;
    font-size: 14px;
    color: var(--semi-black);
}

.message-text {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--semi-black);
}

/* View Button */
.view-btn {
    padding: 6px 12px;
    font-size: 14px;
    transition: 0.3s;
    border-radius: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
}

    .view-btn:hover {
        background: var(--secondary-color);
    }

/* ---- Badge Styling ---- */
.badge {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 50px;
    background: var(--primary-color);
    color: white;
}

/* ---- Footer Styling ---- */
.footer {
    background-color: var(--card-bg);
    padding: 20px 0;
    color: var(--text-color);
    text-align: center;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

    /* Footer Social Icons */
    .footer .social-icons a {
        color: var(--text-color);
        font-size: 20px;
        margin: 0 10px;
        transition: color 0.3s ease-in-out, transform 0.3s;
    }

        .footer .social-icons a:hover {
            color: var(--primary-color);
            transform: scale(1.1);
        }

/* Footer Links */
.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease-in-out;
}

    .footer-links a:hover {
        color: var(--primary-color);
    }

/* ---- Layout Structure ---- */
html, body {
    height: 100%;
    margin: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
    margin-top: 20px;
}

/* ---- Forms ---- */
.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: box-shadow 0.3s ease-in-out;
}

.form-check-label {
    font-size: 18px;
    font-weight: 600;
    margin-left: 8px;
    cursor: pointer;
}

.form-check-inline {
    margin-right: 20px;
}

/* Stylish Radio Button */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
}

/* ---- Buttons ---- */
.btn {
    border-radius: 25px;
    padding: 8px 15px;
    transition: all 0.3s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
    }

/* ---- Utility Classes ---- */
ul {
    list-style-type: none;
    padding-left: 20px;
}

.hidden {
    display: none;
}

.toggle {
    cursor: pointer;
    font-weight: bold;
}

/* Notification Bell Animation */
@keyframes bellShake {
    0% {
        transform: rotate(0);
    }

    15% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(15deg);
    }

    45% {
        transform: rotate(-10deg);
    }

    60% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0);
    }
}

.bell-icon:hover {
    animation: bellShake 0.8s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-item {
        flex-direction: column;
        text-align: center;
    }

    .profile-icon {
        margin-bottom: 10px;
    }

    .view-btn {
        width: 100%;
    }

    .footer-links a,
    .footer .social-icons a {
        font-size: 18px;
        margin: 0 5px;
    }
}
