/* General Body Styling */
body {
    font-family: 'Trebuchet MS', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column; /* Allows header on top for mobile/tablet */
}

/* Header Styling */
.mobile-header {
    width: 100%;
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
    color: white;
    padding: 10px;
    position: fixed;
    top: 0;
    z-index: 1000;
    display: none; /* Hide by default */
    align-items: center;
    justify-content: space-between;
}

/* Sidebar Styling */
.sidebar {
    height: 100vh;
    width: 25%;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
    color: white;
    padding: 40px 20px;
    box-shadow: 3px 0px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 900; /* Ensure the sidebar is beneath the header */
}

/* Content Area Styling */
.content {
    margin-left: 25%;
    width: 75%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    padding-top: 80px; /* Adjust padding to account for header height */
}

/* Card and Button Styling */
.card {
    width: 100%; /* Full width within the content area */
    max-width: 600px; /* Limit the maximum width */
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; /* Space below the card */
}

.card-header {
    background-color: #007bff;
    color: white;
    text-align: center;
}

.card .btn {
    background-color: #ffc107;
    border: none;
    color: white;
    border-radius: 5px;
    font-weight: bold;
}

.card .btn:hover {
    background-color: #e0a800;
}

/* Reprint Button Styling */
.reprint-button {
    text-align: center;
    margin-bottom: 1rem;
}

.reprint-button .btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
}

.reprint-button .btn:hover {
    background-color: #0056b3;
}

/* Sidebar Logo and Text Styling */
.sidebar .logo {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar .logo img {
    width: 120px;
    height: auto;
    margin-bottom: 15px;
    background-color: white;
}

.sidebar h2,
.sidebar h6,
.sidebar h5 {
    font-family: inherit;
    color: #f8f9fa;
    margin: 10px 0;
    text-align: center;
}

.sidebar hr {
    border-color: #6c757d;
    margin: 20px 0;
}

.sidebar a {
    color: #ffc107;
    text-decoration: none;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* Responsive Design for Mobile and Tablet */
@media (max-width: 768px) {
    .sidebar {
        display: none; /* Hide sidebar on mobile and tablet */
    }

    .mobile-header {
        display: flex; /* Show header on mobile and tablet */
    }

    .content {
        margin-left: 0;
        width: 100%;
        padding-top: 80px; /* Adjust padding to account for header height */
    }

    .card {
        max-width: 100%;
        padding: 10px;
    }
}

@media (min-width: 769px) {
    .mobile-header {
        display: none; /* Hide header on desktop */
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .sidebar {
        width: 20%; /* Adjust width for tablets */
    }

    .content {
        margin-left: 20%; /* Adjust content margin for tablets */
        width: 80%;
    }
}
