/* General Styles */
body {
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Dashboard-Specific Background Image */
body.dashboard-page {
    background-image: url('images/login-bg.jpg'); /* Background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Text color for headings and welcome message */
body.dashboard-page h1,
body.dashboard-page p.text-end {
    color: white;
}

/* Semi-transparent card background */
body.dashboard-page .card {
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Text color inside cards */
body.dashboard-page .card-body {
    color: #333; /* Dark text for better readability */
}

/* Footer styling */
body.dashboard-page footer {
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    color: white;
    text-align: center;
    padding: 20px;
    position: sticky;
    bottom: 0;
    width: 100%;
}

/* Navbar Styles */
.navbar {
    background-color: #343a40 !important; /* Dark background for navbar */
    padding: 10px 0; /* Add some padding */
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    max-height: 40px;
    margin-right: 10px; /* Add space between logo and title */
}

.navbar-brand.mx-auto {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin: 0 auto; /* Center the title */
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-color: white;
}

.navbar-nav .nav-link {
    color: white !important;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
}

/* Mobile-Specific Styles */
@media (max-width: 767.98px) {
    .navbar-brand img {
        max-height: 30px;
    }

    .dropdown-menu {
        width: 100%;
        left: 0;
        right: 0;
    }

    .container {
        padding: 10px;
    }

    .navbar-brand.mx-auto {
        font-size: 1.2rem; /* Smaller font size for mobile */
    }
}

/* Desktop-Specific Styles */
@media (min-width: 768px) {
    .navbar-brand img {
        max-height: 50px;
    }

    /* Container Styles */
.container {
    padding: 20px;
    padding-bottom: 80px; /* Add padding to avoid footer overlap */
           }
}

/* Card Styles */
.card {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #007bff;
    color: white;
    padding: 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.card-body {
    padding: 20px;
}

/* Button Styles */
.btn {
    margin: 5px;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
}

.btn-primary {
    background-color: #007bff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
    border: none;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-warning {
    background-color: #ffc107;
    border: none;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
    border: none;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

/* Alert Styles */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* License Usage Logs Table Styles */
.card .table {
    margin-bottom: 0; /* Remove default margin */
}

.card .table thead th {
    background-color: #007bff; /* Match card header color */
    color: white; /* Match card header text color */
    border-top: none; /* Remove top border */
}

.card .table tbody td {
    vertical-align: middle; /* Align content vertically */
}

.card .table tbody tr:last-child td {
    border-bottom: none; /* Remove bottom border for the last row */
}

/* Ensure the card body padding is consistent */
.card-body {
    padding: 20px;
}

/* Add this to ensure the table doesn't overflow the card */
.card-body .table-responsive {
    overflow-x: auto;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px;
    background-color: #343a40;
    color: white;
    border-top: 1px solid #ddd;
    width: 100%;
    margin-top: auto; /* Push footer to the bottom */
    position: relative; /* Change from fixed to relative */
    bottom: 0;
    left: 0;
}

footer p {
    margin: 0;
    font-size: 14px;
    color: white;
}