/* General Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

:not(.dark-mode) h2, 
:not(.dark-mode) h3, 
:not(.dark-mode) h4, 
:not(.dark-mode) h6 {
    color: #2c3e50; /* Sets the text color to a dark blue-gray */
    margin-bottom: 20px; /* Adds a bottom margin of 20px */
}

:not(.dark-mode) h1 {
    margin-bottom: 20px; /* Adds a bottom margin of 20px */
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* Login Page Styles */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.login-container .card {
    border: none;
    background: transparent;
}

.login-container .card-header {
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.login-container .card-body {
    padding: 30px;
}

.login-container .form-group {
    margin-bottom: 20px;
}

.login-container .form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.login-container .form-control {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-container .form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.login-container .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-container .btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.login-container .alert {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}

.login-container .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.login-container .alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive Table Styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.table-responsive table {
    min-width: 600px; /* Ensure the table has a minimum width */
}



/* Tables */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #333;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.table th, .table td {
    white-space: nowrap; /* Prevent text wrapping */
}


/* Add a hover effect to table rows */
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}
.table th, .table td {
    padding: 12px;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    font-weight: bold;
    border-bottom: 2px solid #0056b3;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}


/* Buttons */
.btn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004080);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #545b62);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 20px;
}

.badge-success {
    color: #fff;
    background-color: #28a745;
}

.badge-danger {
    color: #fff;
    background-color: #dc3545;
}

.badge-warning {
    color: #212529;
    background-color: #ffc107;
}

.badge-info {
    color: #fff;
    background-color: #17a2b8;
}

.badge-primary {
    color: #fff;
    background-color: #007bff;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group .form-control {
    flex: 1;
    border-radius: 5px 0 0 5px;
}

.input-group-append .btn {
    border-radius: 0 5px 5px 0;
    box-shadow: none;
}

/* Select Dropdowns */
select.form-control {
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none; /* Remove default arrow for Safari */
    -moz-appearance: none; /* Remove default arrow for Firefox */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23007bff'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding: 8px 30px 8px 10px; /* Adjust padding for better vertical alignment */
    line-height: 1.5; /* Ensure text is vertically centered */
    cursor: pointer;
    height: auto; /* Allow the height to adjust based on content */
}

select.form-control:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23007bff'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
}

/* Modals */
.modal-content {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 15px 20px;
    border-bottom: none;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 15px 20px;
    border-radius: 0 0 10px 10px;
}

.modal-footer .btn {
    margin-left: 10px;
}

/* Button Group Styles */
.btn-group {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-group .btn {
    margin: 2px;
    flex: 1 1 auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination .page-item {
    margin: 0 5px;
}

.pagination .page-link {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    color: #007bff;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination .page-link:hover {
    background-color: #f8f9fa;
    color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Dashboard Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: white;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    font-size: 1.25rem;
    font-weight: bold;
}

.card-body {
    padding: 20px;
}

.card-body h5 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.card-body p {
    color: #555;
    line-height: 1.6;
}

/* Alerts and Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border: 1px solid transparent;
    animation: fadeIn 0.5s ease-in-out;
}

.alert-success {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    border-color: #c3e6cb;
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-color: #f5c6cb;
}

.alert-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
    border-color: #ffeeba;
}

.alert-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border-color: #bee5eb;
}

.alert-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #b8daff;
}

.alert-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border-color: #d6d8db;
}

/* Tooltips */
.tooltip-inner {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #007bff;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #007bff;
}

.tooltip.bs-tooltip-left .tooltip-arrow::before {
    border-left-color: #007bff;
}

.tooltip.bs-tooltip-right .tooltip-arrow::before {
    border-right-color: #007bff;
}

/* Navbar */
.navbar {
    background-color: #007bff;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: #fff !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column;
    }

    .navbar-nav .nav-item {
        margin-left: 0;
    }

    .navbar-nav .nav-link {
        padding: 10px 0;
    }

    .login-container {
        margin: 50px auto;
        padding: 20px;
    }
}

/* Admin Dashboard Specific Styles */
.admin-dashboard {
    padding: 2rem 0;
}

.admin-dashboard h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.admin-dashboard .quick-actions {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.admin-dashboard .quick-actions .btn {
    flex: 1;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.admin-dashboard .quick-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.admin-dashboard .card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.admin-dashboard .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.admin-dashboard .card-header {
    background-color: #007bff;
    color: white;
    padding: 1.25rem;
    border-radius: 12px 12px 0 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.admin-dashboard .card-body {
    padding: 1.5rem;
}

.admin-dashboard .table {
    margin-bottom: 1rem;
}

.admin-dashboard .table th {
    font-weight: 600;
    background-color: #f8f9fa;
    color: white;
}

.admin-dashboard .table td {
    vertical-align: middle;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-dashboard .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

.admin-dashboard .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Reseller Dashboard Specific Styles */
.reseller-dashboard {
    padding: 2rem 0;
}

.reseller-dashboard h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.reseller-dashboard .card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.reseller-dashboard .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.reseller-dashboard .card-header {
    background-color: #007bff;
    color: white;
    padding: 1.25rem;
    border-radius: 12px 12px 0 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.reseller-dashboard .card-body {
    padding: 1.5rem;
}

.reseller-dashboard .table {
    margin-bottom: 1rem;
}

.reseller-dashboard .table th {
    font-weight: 600;
    background-color: #f8f9fa;
    color: white;
}

.reseller-dashboard .table td {
    vertical-align: middle;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reseller-dashboard .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

.reseller-dashboard .btn-lg {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.reseller-dashboard .btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Recent Keys Section */
.admin-dashboard .recent-keys {
    margin-top: 30px;
}

.admin-dashboard .recent-keys .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    overflow: hidden;
}

.admin-dashboard .recent-keys .card-header {
    background-color: #007bff;
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    font-size: 1.25rem;
    font-weight: bold;
}

.admin-dashboard .recent-keys .card-body {
    padding: 20px;
    overflow-x: auto;
}

.admin-dashboard .recent-keys .table {
    width: 100%;
    margin-bottom: 0;
    min-width: 600px;
}

.admin-dashboard .recent-keys .table th,
.admin-dashboard .recent-keys .table td {
    padding: 12px;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.admin-dashboard .recent-keys .table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.admin-dashboard .recent-keys .table thead th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border-bottom: 2px solid #0056b3;
}

.admin-dashboard .recent-keys .table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

.admin-dashboard .recent-keys .table-hover tbody tr:hover {
    background-color: #e9ecef;
}

/* Responsive Design for Admin Dashboard */
@media (max-width: 768px) {
    .admin-dashboard .stats-card {
        margin-bottom: 15px;
    }

    .admin-dashboard .stats-number {
        font-size: 2rem;
    }

    .admin-dashboard .stats-icon {
        font-size: 1.5rem;
    }

    .admin-dashboard .stats-title {
        font-size: 1rem;
    }

    .admin-dashboard .recent-keys .card-header {
        font-size: 1.1rem;
        padding: 10px 15px;
    }

    .admin-dashboard .recent-keys .card-body {
        padding: 15px;
    }

    .admin-dashboard .recent-keys .table th,
    .admin-dashboard .recent-keys .table td {
        padding: 8px;
    }
}

@media (max-width: 576px) {
    .admin-dashboard .stats-card {
        padding: 15px;
    }

    .admin-dashboard .stats-number {
        font-size: 1.8rem;
    }

    .admin-dashboard .stats-icon {
        font-size: 1.2rem;
    }

    .admin-dashboard .stats-title {
        font-size: 0.9rem;
    }

    .admin-dashboard .recent-keys .card-header {
        font-size: 1rem;
        padding: 8px 12px;
    }

    .admin-dashboard .recent-keys .card-body {
        padding: 10px;
    }

    .admin-dashboard .recent-keys .table th,
    .admin-dashboard .recent-keys .table td {
        padding: 6px;
        font-size: 0.9rem;
    }
}

/* Account Settings Specific Styles */
.account-settings .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.account-settings .card-header {
    background-color: #007bff;
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 15px 20px;
    font-size: 1.25rem;
    font-weight: bold;
}

.account-settings .card-body {
    padding: 20px;
}

.account-settings .form-group {
    margin-bottom: 20px;
}

.account-settings .form-group label {
    font-weight: bold;
    color: #555;
}

.account-settings .form-control {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.account-settings .form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.account-settings .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.account-settings .btn-primary:hover {
    background-color: #0056b3;
}

/* Manage Keys Specific Styles */
.manage-keys .search-container {
    margin-bottom: 20px;
}

.manage-keys .search-container input {
    width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.manage-keys .search-container button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.manage-keys .search-container button:hover {
    background-color: #0056b3;
}

.manage-keys .table {
    margin-top: 20px;
}

.manage-keys .btn-group {
    display: flex;
    gap: 10px;
}

.manage-keys .btn-group .btn {
    padding: 8px 12px;
    font-size: 14px;
}

.manage-keys .modal-content {
    border-radius: 10px;
}

.manage-keys .modal-header {
    background-color: #007bff;
    color: white;
    border-radius: 10px 10px 0 0;
}

.manage-keys .modal-body {
    padding: 20px;
}

.manage-keys .modal-footer {
    border-top: 1px solid #ddd;
    padding: 15px 20px;
}

/* Add this to your styles.css file */
.view-logs {
    padding: 2rem 0;
}

.view-logs h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.view-logs .search-container {
    margin-bottom: 20px;
}

.view-logs .search-container input {
    width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.view-logs .search-container button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-logs .search-container button:hover {
    background-color: #0056b3;
}

.view-logs .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    margin-bottom: 20px;
}

.view-logs .card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    font-size: 1.25rem;
    font-weight: bold;
}

.view-logs .card-body {
    padding: 20px;
}

.view-logs .table {
    width: 100%;
    margin-bottom: 0;
    min-width: 600px;
}

.view-logs .table th,
.view-logs .table td {
    padding: 12px;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.view-logs .table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.view-logs .table thead th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border-bottom: 2px solid #0056b3;
}

.view-logs .table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

.view-logs .table-hover tbody tr:hover {
    background-color: #e9ecef;
}

.view-logs .pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.view-logs .pagination .page-item {
    margin: 0 5px;
}

.view-logs .pagination .page-link {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    color: #007bff;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.view-logs .pagination .page-link:hover {
    background-color: #f8f9fa;
    color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.view-logs .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
}

.view-logs .pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
    cursor: not-allowed;
}
/* Success and Error Message Styles */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border: 1px solid transparent;
    animation: fadeIn 0.5s ease-in-out;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Changelog Page Styles */
.changelog-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.changelog-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 2rem;
}

.changelog-entry {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.changelog-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.version {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.release-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.description {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .changelog-container {
        padding: 20px;
    }

    .changelog-container h1 {
        font-size: 1.75rem;
    }

    .version {
        font-size: 1.25rem;
    }

    .description {
        font-size: 0.95rem;
    }
}

/* Chart Container Styles */
.chart-container {
    position: relative;
    margin: auto;
    height: 300px;
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* Chart Canvas Styles */
canvas {
    max-width: 100%;
    height: auto !important;
}

/* Manage Changelog Page Styles */
.manage-changelog-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.manage-changelog-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 2rem;
}

.manage-changelog-container .form-group {
    margin-bottom: 20px;
}

.manage-changelog-container .form-group label {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.manage-changelog-container .form-control {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.manage-changelog-container .form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.manage-changelog-container .btn {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.manage-changelog-container .btn-primary {
    background-color: #007bff;
    color: #fff;
    border: none;
}

.manage-changelog-container .btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.manage-changelog-container .btn-warning {
    background-color: #ffc107;
    color: #212529;
    border: none;
}

.manage-changelog-container .btn-warning:hover {
    background-color: #e0a800;
    transform: translateY(-1px);
}

.manage-changelog-container .btn-danger {
    background-color: #dc3545;
    color: #fff;
    border: none;
}

.manage-changelog-container .btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.manage-changelog-container .changelog-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.manage-changelog-container .changelog-table th,
.manage-changelog-container .changelog-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.manage-changelog-container .changelog-table th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

.manage-changelog-container .changelog-table tr:hover {
    background-color: #f8f9fa;
}

.manage-changelog-container .changelog-table .btn {
    margin-right: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .manage-changelog-container {
        padding: 20px;
    }

    .manage-changelog-container h1 {
        font-size: 1.75rem;
    }

    .manage-changelog-container .form-control {
        font-size: 14px;
    }

    .manage-changelog-container .btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    .manage-changelog-container .changelog-table th,
    .manage-changelog-container .changelog-table td {
        padding: 8px;
        font-size: 14px;
    }
}

.password-requirements {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    margin-top: 10px;
}

.password-requirements h6 {
    color: #495057;
    font-weight: 600;
}

.dark-mode .password-requirements h6 {
    color: #e0e0e0;
}

.requirement-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.requirement-item i {
    margin-right: 8px;
    transition: all 0.3s ease;
}

.requirement-item.valid {
    color: #28a745;
}

.requirement-item.valid i {
    color: #28a745 !important;
}

.requirement-item i.fa-check-circle {
    animation: scaleCheck 0.3s ease;
}

@keyframes scaleCheck {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.password-generator {
    margin-top: 10px;
}

.generated-password {
    font-family: monospace;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-right: 10px;
}

/* Password Strength Meter */
.password-strength-meter {
    margin-top: 10px;
    height: 5px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-meter .strength-bar {
    height: 100%;
    transition: width 0.3s ease;
}

.password-strength-meter .strength-bar.weak {
    background-color: #dc3545;
    width: 25%;
}

.password-strength-meter .strength-bar.moderate {
    background-color: #ffc107;
    width: 50%;
}

.password-strength-meter .strength-bar.strong {
    background-color: #28a745;
    width: 75%;
}

.password-strength-meter .strength-bar.very-strong {
    background-color: #007bff;
    width: 100%;
}

.card-body canvas {
    max-width: 100%;
    height: auto !important;
}

/* Dark Mode General Styles */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode .navbar {
    background-color: #1f1f1f;
    border-bottom: 1px solid #444;
}

.dark-mode .navbar-brand,
.dark-mode .nav-link {
    color: #e0e0e0 !important;
}

.dark-mode .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dark Mode for Cards */
.dark-mode .card {
    background-color: #1f1f1f;
    color: #e0e0e0;
    border: 1px solid #444;
}

.dark-mode .card-header {
    background: linear-gradient(135deg, #2c2c2c, #121212);
    color: #e0e0e0;
}

.dark-mode .card-body h5 {
    color: #e0e0e0;
}

.dark-mode .card-body p {
    color: #e0e0e0;
}

/* Dark Mode for Tables */
.dark-mode .table {
    background-color: #1f1f1f;
    color: #e0e0e0;
}

.dark-mode .table th, .dark-mode .table td {
    border-color: #444;
}

.dark-mode .table thead th {
    background: linear-gradient(135deg, #2c2c2c, #121212);
    color: #e0e0e0;
    border-bottom: 2px solid #444;
}

.dark-mode .table-striped tbody tr:nth-of-type(odd) {
    background-color: #2c2c2c;
}

.dark-mode .table-hover tbody tr:hover {
    background-color: #444;
}


/* Dark Mode for Buttons */
.dark-mode .btn-primary {
    background: linear-gradient(135deg, #2c2c2c, #121212);
    color: #e0e0e0;
}

.dark-mode .btn-primary:hover {
    background: linear-gradient(135deg, #121212, #2c2c2c);
}

.dark-mode .btn-success {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
}

.dark-mode .btn-success:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
}

.dark-mode .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.dark-mode .btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
}

.dark-mode .btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.dark-mode .btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
}

.dark-mode .btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.dark-mode .btn-info:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
}

.dark-mode .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.dark-mode .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #545b62);
}

/* Dark Mode for Alerts */
.dark-mode .alert-success {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
}

.dark-mode .alert-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.dark-mode .alert-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.dark-mode .alert-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.dark-mode .alert-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.dark-mode .alert-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}


/* Dark Mode for Forms */
.dark-mode .form-group label {
    color: #e0e0e0;
}

.dark-mode .form-control {
    background-color: #2c2c2c;
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode .form-control:focus {
    border-color: #007bff;
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.dark-mode .input-group-append .btn {
    background-color: #2c2c2c;
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode .input-group-append .btn:hover {
    background-color: #444;
}

/* Dark Mode for Select Dropdowns */
.dark-mode select.form-control {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e0e0e0'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-color: #2c2c2c;
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode select.form-control:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e0e0e0'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    border-color: #007bff;
}

/* Dark Mode Styles for Password Strength Meter */
.dark-mode .password-strength-meter {
    background-color: #444;
}

.dark-mode .password-strength-meter .strength-bar.weak {
    background-color: #dc3545;
}

.dark-mode .password-strength-meter .strength-bar.moderate {
    background-color: #ffc107;
}

.dark-mode .password-strength-meter .strength-bar.strong {
    background-color: #28a745;
}

.dark-mode .password-strength-meter .strength-bar.very-strong {
    background-color: #007bff;
}

.dark-mode .badge-primary {
    background-color: #007bff;
    color: #fff;
}

.dark-mode .badge-success {
    background-color: #28a745;
    color: #fff;
}

.dark-mode .badge-danger {
    background-color: #dc3545;
    color: #fff;
}

.dark-mode .badge-warning {
    background-color: #ffc107;
    color: #000;
}

.dark-mode .badge-info {
    background-color: #17a2b8;
    color: #fff;
}

/* Dark Mode for Modals */
.dark-mode .modal-content {
    background-color: #1f1f1f;
    color: #e0e0e0;
}

.dark-mode .modal-header {
    background: linear-gradient(135deg, #2c2c2c, #121212);
    color: #e0e0e0;
}

.dark-mode .modal-body {
    background-color: #1f1f1f;
    color: #e0e0e0;
}

.dark-mode .modal-footer {
    border-top: 1px solid #444;
    background-color: #1f1f1f;
}

/* Dark Mode for Pagination */
.dark-mode .pagination .page-link {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.dark-mode .pagination .page-link:hover {
    background-color: #444;
    color: #e0e0e0;
}

.dark-mode .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #2c2c2c, #121212);
    color: #e0e0e0;
}

.dark-mode .pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #2c2c2c;
}

#darkModeToggle {
    margin-right: 10px;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 14px;
    background-color: transparent;
    border: 1px solid #e0e0e0;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

#darkModeToggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode #darkModeToggle {
    background-color: #444;
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode #darkModeToggle:hover {
    background-color: #555;
    border-color: #555;
}

.dark-mode .card-body canvas {
    background-color: #2c2c2c;
}

/* Dark Mode for Changelog Page */
.dark-mode .changelog-container {
    background-color: #1f1f1f;
    color: #e0e0e0;
    border: 1px solid #444;
}

.dark-mode .changelog-container h1 {
    color: #e0e0e0;
}

.dark-mode .changelog-entry {
    border-bottom: 1px solid #444;
}

.dark-mode .version {
    color: #007bff;
}

.dark-mode .release-date {
    color: #999;
}

.dark-mode .description {
    color: #e0e0e0;
}

/* Dark Mode for Manage Changelog Page */
.dark-mode .manage-changelog-container {
    background-color: #1f1f1f;
    color: #e0e0e0;
    border: 1px solid #444;
}

.dark-mode .manage-changelog-container h1 {
    color: #e0e0e0;
}

.dark-mode .manage-changelog-container .form-control {
    background-color: #2c2c2c;
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode .manage-changelog-container .form-control:focus {
    background-color: #2c2c2c;
    border-color: #007bff;
    color: #e0e0e0;
}

.dark-mode .manage-changelog-container .changelog-table {
    background-color: #1f1f1f;
    color: #e0e0e0;
}

.dark-mode .manage-changelog-container .changelog-table th,
.dark-mode .manage-changelog-container .changelog-table td {
    border-color: #444;
}

.dark-mode .manage-changelog-container .changelog-table th {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.dark-mode .manage-changelog-container .changelog-table tr:hover {
    background-color: #444;
}

.dark-mode .manage-changelog-container .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.dark-mode .manage-changelog-container .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.dark-mode .manage-changelog-container .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.dark-mode .manage-changelog-container .btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.dark-mode .manage-changelog-container .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.dark-mode .manage-changelog-container .btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
}

/* Dark Mode for Account Settings Page */
.dark-mode .account-settings .card {
    background-color: #1f1f1f;
    color: #e0e0e0;
    border: 1px solid #444;
}

.dark-mode .account-settings .card-header {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.dark-mode .account-settings .form-control {
    background-color: #2c2c2c;
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode .account-settings .form-control:focus {
    background-color: #2c2c2c;
    border-color: #007bff;
    color: #e0e0e0;
}

.dark-mode .account-settings .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.dark-mode .account-settings .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.dark-mode  .password-requirements {
    background-color: #2c2c2c;
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode  .requirement-item {
    color: #e0e0e0;
}

.dark-mode .requirement-item.valid {
    color: #28a745;
}

.dark-mode .requirement-item.valid i {
    color: #28a745 !important;
}

/* Dark Mode for Admin Dashboard */
.dark-mode .admin-dashboard .stats-card {
    background-color: #1f1f1f;
    color: #e0e0e0;
    border: 1px solid #444;
}

.dark-mode .admin-dashboard .stats-card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.dark-mode .admin-dashboard .stats-number {
    color: #e0e0e0;
}

.dark-mode .admin-dashboard .stats-title {
    color: #e0e0e0;
}

.dark-mode .admin-dashboard .recent-keys .card {
    background-color: #1f1f1f;
    color: #e0e0e0;
    border: 1px solid #444;
}

.dark-mode .admin-dashboard .recent-keys .card-header {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.dark-mode .admin-dashboard .recent-keys .table {
    background-color: #1f1f1f;
    color: #e0e0e0;
}

.dark-mode .admin-dashboard .recent-keys .table th,
.dark-mode .admin-dashboard .recent-keys .table td {
    border-color: #444;
}

.dark-mode .admin-dashboard .recent-keys .table thead th {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.dark-mode .admin-dashboard .recent-keys .table-striped tbody tr:nth-of-type(odd) {
    background-color: #2c2c2c;
}

.dark-mode .admin-dashboard .recent-keys .table-hover tbody tr:hover {
    background-color: #444;
}

/* Dark Mode for Reseller Dashboard */
.dark-mode .reseller-dashboard .card {
    background-color: #1f1f1f;
    color: #e0e0e0;
    border: 1px solid #444;
}

.dark-mode .reseller-dashboard .card-header {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.dark-mode .reseller-dashboard .table {
    background-color: #1f1f1f;
    color: #e0e0e0;
}

.dark-mode .reseller-dashboard .table th,
.dark-mode .reseller-dashboard .table td {
    border-color: #444;
}

.dark-mode .reseller-dashboard .table thead th {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.dark-mode .reseller-dashboard .table-striped tbody tr:nth-of-type(odd) {
    background-color: #2c2c2c;
}

.dark-mode .reseller-dashboard .table-hover tbody tr:hover {
    background-color: #444;
}

/* Dark Mode for Tooltips */
.dark-mode .tooltip-inner {
    background: linear-gradient(135deg, #2c2c2c, #121212);
    color: #e0e0e0;
}

.dark-mode .tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #2c2c2c;
}

.dark-mode .tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #2c2c2c;
}

.dark-mode .tooltip.bs-tooltip-left .tooltip-arrow::before {
    border-left-color: #2c2c2c;
}

.dark-mode .tooltip.bs-tooltip-right .tooltip-arrow::before {
    border-right-color: #2c2c2c;
}

/* Dark Mode Chart Styles */
.dark-mode .chart-container {
    background-color: #1f1f1f;
    border: 1px solid #444;
}

.dark-mode canvas {
    background-color: #1f1f1f;
}

/* Loading Spinner Styles */
#loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

#loading-spinner.dark-mode {
    background-color: rgba(0, 0, 0, 0.9);
}

.spinner {
    border: 4px solid rgba(0, 123, 255, 0.3);
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth Page Transition Styles */
.smooth-transition {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.smooth-transition.visible {
    opacity: 1;
}
.navbar {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}
.user-info {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin: 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.credits-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#darkModeToggle {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

#darkModeToggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .navbar {
    background: linear-gradient(135deg, #1f1f1f, #121212);
}

.dark-mode .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.dark-mode .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode #darkModeToggle {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.dark-mode #darkModeToggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
/* Responsive Design */
@media (min-width: 992px) {
.container {
    max-width: 1400px;
    padding: 0 2rem;
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-item {
    white-space: nowrap;
}
}

@media (max-width: 991.98px) {
.navbar-collapse {
    max-height: 85vh;
    overflow-y: auto;
    padding: 1rem 0;
}

.nav-item {
    width: 100%;
    margin: 0.25rem 0;
}

.nav-link {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-info {
    margin: 0.5rem 0;
    justify-content: center;
}

.credits-badge {
    margin: 0.5rem 0;
    justify-content: center;
}

.navbar-divider {
    margin: 1rem 0;
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav.align-items-lg-center {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
}

/* Icon Animations */
.fas {
transition: transform 0.2s ease;
}

.nav-link:hover .fas {
transform: scale(1.1);
}

/* Smooth Transitions */
.navbar-collapse {
transition: all 0.3s ease-in-out;
}

/* Accessibility Improvements */
.nav-link:focus {
outline: 2px solid rgba(255, 255, 255, 0.5);
outline-offset: -2px;
}

/* Dark Mode for View Logs */
.dark-mode .view-logs h1 {
    color: #e0e0e0;
}

.dark-mode .view-logs .card {
    background-color: #1f1f1f;
    color: #e0e0e0;
    border: 1px solid #444;
}

.dark-mode .view-logs .card-header {
    background: linear-gradient(135deg, #2c2c2c, #121212);
    color: #e0e0e0;
}

.dark-mode .view-logs .table {
    background-color: #1f1f1f;
    color: #e0e0e0;
}

.dark-mode .view-logs .table th,
.dark-mode .view-logs .table td {
    border-color: #444;
}

.dark-mode .view-logs .table thead th {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.dark-mode .view-logs .table-striped tbody tr:nth-of-type(odd) {
    background-color: #2c2c2c;
}

.dark-mode .view-logs .table-hover tbody tr:hover {
    background-color: #444;
}

.dark-mode .view-logs .pagination .page-link {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

.dark-mode .view-logs .pagination .page-link:hover {
    background-color: #444;
    color: #e0e0e0;
}

.dark-mode .view-logs .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #2c2c2c, #121212);
    color: #e0e0e0;
}

.dark-mode .view-logs .pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #2c2c2c;
}

.dark-mode h1, 
.dark-mode h2, 
.dark-mode h3, 
.dark-mode h4, 
.dark-mode h5, 
.dark-mode h6 {
    color: #e0e0e0;
}
/* Tab Navigation Styles */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1rem;
}

.nav-tabs .nav-item {
    margin-bottom: -2px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #495057;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-bottom: 2px solid #007bff;
    color: #007bff;
}

.nav-tabs .nav-link.active {
    border-bottom: 2px solid #007bff;
    color: #007bff;
    background-color: transparent;
}
/* Dark Mode for Tabs */
.dark-mode .nav-tabs {
    border-bottom: 2px solid #444;
}

.dark-mode .nav-tabs .nav-link {
    color: #e0e0e0;
}

.dark-mode .nav-tabs .nav-link:hover {
    border-bottom: 2px solid #007bff;
    color: #007bff;
}

.dark-mode .nav-tabs .nav-link.active {
    border-bottom: 2px solid #007bff;
    color: #007bff;
}
/* Badge Styles */
.badge {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.badge-primary {
    background-color: #007bff;
    color: white;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}
/* Dark Mode for Badges */
.dark-mode .badge-primary {
    background-color: #007bff;
    color: white;
}

.dark-mode .badge-success {
    background-color: #28a745;
    color: white;
}

.dark-mode .badge-danger {
    background-color: #dc3545;
    color: white;
}

.dark-mode .badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.dark-mode .badge-info {
    background-color: #17a2b8;
    color: white;
}
/* Truncate long keys */
.truncate {
    max-width: 150px; /* Adjust as needed */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}