/* General Styles */
body {
    background: linear-gradient(to bottom, #f8f9fa, #e8ecef);
    color: #212529;
    font-family: 'Roboto', Arial, sans-serif;
    transition: background-color 0.3s ease;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(to right, #007bff, #0056b3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff !important;
}

/* Light Mode Navbar Styling */
.navbar-light {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #212529;
}

.navbar-light .navbar-brand,
.navbar-light .nav-link,
.navbar-light .btn-outline-light {
    color: #212529 !important;
}

.navbar-light .btn-outline-light {
    border-color: #212529;
}

.navbar-light .btn-outline-light:hover {
    background-color: #212529;
    color: #fff;
}

.navbar-light .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: #ffffff !important;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
    color: #ffc107 !important;
    transform: scale(1.1);
}

.bg-gradient {
    background: linear-gradient(to right, #007bff, #0056b3);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    transition: background 0.3s ease, transform 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004494);
    transform: scale(1.05);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #5a6268;
}

/* Forms */
.form-control {
    border-radius: 5px;
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* Alerts */
.alert {
    border-radius: 5px;
}

/* Status Badges */
.badge-success {
    background-color: #28a745 !important;
}

.badge-danger {
    background-color: #dc3545 !important;
}

/* Footer */
.footer {
    background: #212529;
    color: #ffffff;
    padding: 15px 0;
    text-align: center;
}

/* Dark Mode */
body.dark-mode {
    background: #121212;
    color: #e0e0e0;
}

body.dark-mode .navbar {
    background: #121212;
    color: #e0e0e0;
}

body.dark-mode .card {
    background-color: #2b2b2b;
    color: #e0e0e0;
    box-shadow: none;
}

body.dark-mode .navbar .nav-link,
body.dark-mode .navbar .btn-outline-light {
    color: #e0e0e0 !important;
}

body.dark-mode .navbar .btn-outline-light:hover {
    background-color: #e0e0e0;
    color: #121212;
}

body.dark-mode .btn-outline-light {
    border-color: #ffc107;
}

body.dark-mode .btn-primary {
    background: linear-gradient(45deg, #0056b3, #00337a);
}

body.dark-mode .dropdown-menu {
    background-color: #2b2b3d;
    color: #e4e4e4;
}

body.dark-mode .dropdown-item:hover {
    background-color: #ffc107;
    color: #121212;
}

/* Edit User Card */
.edit-user-card {
    max-width: 500px;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #ffffff;
}

.edit-user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.edit-user-card .card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: bold;
}

.edit-user-card .card-body {
    padding: 20px;
}

/* Buttons */
.btn-reset-password {
    background-color: #ffc107;
    border: none;
    transition: background 0.3s ease, transform 0.2s;
}

.btn-reset-password:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
}

/* Dark Mode for Edit User Card */
body.dark-mode .edit-user-card {
    background: #1f1f1f;
    color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .edit-user-card .card-header {
    background: linear-gradient(135deg, #0056b3, #00337a);
}

body.dark-mode .edit-user-card input,
body.dark-mode .edit-user-card select {
    background: #2b2b2b;
    color: #ffffff;
    border: 1px solid #444;
}

body.dark-mode .edit-user-card input::placeholder,
body.dark-mode .edit-user-card select {
    color: #ccc;
}

body.dark-mode .edit-user-card .btn-reset-password {
    background-color: #ffc107;
    color: #000;
}

body.dark-mode .edit-user-card .btn-reset-password:hover {
    background-color: #e0a800;
}
/* Add Site Card */
.add-site-card {
    max-width: 600px;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #ffffff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.add-site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.add-site-card .card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #ffffff;
    text-align: center;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: bold;
}

.add-site-card .card-body {
    padding: 20px;
}

/* Form Styling */
.add-site-card .form-label {
    font-weight: bold;
    color: #333;
}

.add-site-card .form-control,
.add-site-card .form-select {
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.add-site-card .form-control:focus,
.add-site-card .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Button Styling */
.add-site-card .btn {
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.add-site-card .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: #fff;
}

.add-site-card .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #003b80);
    transform: translateY(-3px);
}

/* Dark Mode */
body.dark-mode .add-site-card {
    background: #1f1f1f;
    color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .add-site-card .card-header {
    background: linear-gradient(135deg, #0056b3, #003b80);
}

body.dark-mode .add-site-card .form-control,
body.dark-mode .add-site-card .form-select {
    background: #2b2b2b;
    color: #ffffff;
    border: 1px solid #444;
}

body.dark-mode .add-site-card .form-control::placeholder,
body.dark-mode .add-site-card .form-select {
    color: #ccc;
}
/* Profile Card */
.profile-card {
    max-width: 600px;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #ffffff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.profile-card .card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #ffffff;
    text-align: center;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: bold;
}

.profile-card .card-body {
    padding: 20px;
}

/* Profile Picture */
.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Form Elements */
.profile-card .form-control,
.profile-card .form-select {
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.profile-card .form-control:focus,
.profile-card .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Buttons */
.profile-card .btn {
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.profile-card .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: #fff;
}

.profile-card .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #003b80);
    transform: translateY(-3px);
}

/* Dark Mode */
body.dark-mode .profile-card {
    background: #1f1f1f;
    color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .profile-card .card-header {
    background: linear-gradient(135deg, #0056b3, #003b80);
}

body.dark-mode .profile-card .form-control,
body.dark-mode .profile-card .form-select {
    background: #2b2b2b;
    color: #ffffff;
    border: 1px solid #444;
}

body.dark-mode .profile-card .form-control::placeholder,
body.dark-mode .profile-card .form-select {
    color: #ccc;
}

/* Interactive Profile Picture */
.profile-picture-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-picture-wrapper:hover .profile-picture {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-picture-wrapper::after {
    content: "Change Picture";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #007bff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-picture-wrapper:hover::after {
    opacity: 1;
}

/* Placeholder Styling */
.form-control::placeholder {
    font-style: italic;
    color: #aaa;
}

/* Analytics Section */
.analytics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.analytics .badge {
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 20px;
}

.analytics .btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1rem;
}
/* Site Cards */
.card {
    border: none;
    background-color: #ffffff;
    color: #212529;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.card .card-body {
    padding: 15px;
}

.card .card-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.card .card-text {
    color: #666;
    margin-bottom: 15px;
}

.card .btn {
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
}

.card .btn:hover {
    transform: translateY(-2px);
}

/* Refresh Button */
.refresh-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s ease;
}

.refresh-btn:hover {
    background-color: #0056b3;
    transform: rotate(360deg);
}

.refresh-btn .spinner-border {
    display: none; /* Hidden by default */
    width: 20px;
    height: 20px;
    position: absolute;
}

.refresh-btn.loading .spinner-border {
    display: inline-block; /* Show when loading */
}

/* Loading Screen */
.loading-screen {
    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;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.loading-screen.show {
    opacity: 1;
    pointer-events: all;
}

/* Profile Banner */
.profile-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 12px;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-banner img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.profile-details {
    flex: 1;
    margin-left: 20px;
}

.profile-details h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
}

.profile-details p {
    margin: 0;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-banner {
        flex-direction: column;
        text-align: center;
    }

    .profile-details {
        margin-left: 0;
        margin-bottom: 15px;
    }

    .analytics {
        flex-direction: column;
        text-align: center;
    }
}

/* Container Styling */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* User Cards */
.user-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.user-card .card-body {
    padding: 20px;
}

.user-card .card-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.user-card .card-text {
    margin: 5px 0;
}

.user-card .actions a {
    margin-right: 10px;
    transition: transform 0.2s;
}

.user-card .actions a:hover {
    transform: scale(1.1);
}

/* Badges for User Roles */
.badge-role {
    font-size: 0.9rem;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    text-transform: capitalize;
}

.badge-role.admin {
    background-color: #ffc107;
    color: #000;
}

.badge-role.viewer {
    background-color: #17a2b8;
    color: #fff;
}

.badge-role.editor {
    background-color: #28a745;
    color: #fff;
}

/* Search Bar */
form input[type="text"] {
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: box-shadow 0.3s ease-in-out;
}

form input[type="text"]:focus {
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

form .btn-primary {
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .user-card .actions {
        display: flex;
        flex-direction: column;
    }

    .user-card .actions a {
        margin: 5px 0;
    }
}

/* Card Style */
.card-style {
    max-width: 600px;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-style:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Card Header */
.card-header-style {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #ffffff;
    text-align: center;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Form Styling */
.card-body-style {
    padding: 20px;
}

.card-body-style .form-label {
    font-weight: bold;
}

.card-body-style .form-control,
.card-body-style .form-select {
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-body-style .form-control:focus,
.card-body-style .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Buttons */
.card-body-style .btn {
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.card-body-style .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: #fff;
}

.card-body-style .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #003b80);
    transform: translateY(-3px);
}

.card-body-style .btn-reset-password {
    background: #ffc107;
    border: none;
}

.card-body-style .btn-reset-password:hover {
    background: #e0a800;
    transform: translateY(-3px);
}

/* Dark Mode Compatibility */
body.dark-mode .card-style {
    background: #1f1f1f;
    color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .card-header-style {
    background: linear-gradient(135deg, #0056b3, #003b80);
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background: #2b2b2b;
    color: #ffffff;
    border: 1px solid #444;
}

body.dark-mode .form-control::placeholder,
body.dark-mode .form-select {
    color: #ccc;
}