/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

h1, h2 {
    text-align: center;
    color: #333;
    margin: 20px 0;
}

/* Header - Sticky and using Flexbox */
.header {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

.header-left {
    font-size: 18px;
    font-weight: bold;
}

.header-right {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.header-right a {
    color: white !important;
    text-decoration: none;
    font-size: 16px;
    /* Optionally add padding for a larger clickable area */
    padding: 5px 0;
}

.header-right a:hover {
    text-decoration: underline;
}

/* Ensure body top padding so content doesn't hide behind header */
body {
    padding-top: 60px; /* Adjust based on header height */
}


/* Messages */
.success-message, .error-message {
    margin: 20px auto;
    max-width: 800px;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-links a {
    color: black;
    text-decoration: underline;
}

.success-links a:hover {
    text-decoration: none;
}

/* Forms */
form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
}

form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

form input[type="text"],
form input[type="password"],
form textarea,
form input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

form textarea {
    resize: none;
}

form button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

form button:hover {
    background-color: #218838;
}

form button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Table Styling */
table,
.customer-table {
    width: 70%;
    margin: 20px auto;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
}

th {
    background-color: #2377D6;
    color: white;
    padding: 10px;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Customer Table - Alternate (narrower version) */
.customer-table {
    width: 60%; /* Use this if you want a narrower table for customer documents */
    background-color: #fff;
    border-radius: 5px;
}

/* Links */
a, .document-link, .tube-link {
    color: black;
    text-decoration: underline;
}

a:hover, .document-link:hover, .tube-link:hover,
a:visited, .document-link:visited, .tube-link:visited {
    color: black;
    text-decoration: underline;
}

/* PDF Icon */
.pdf-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.mp4-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #000;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #e9e9e9;
}

.pagination .active {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    text-align: center;
}

.action-buttons .btn:hover {
    opacity: 0.9;
}

.action-buttons .btn-view {
    background-color: #007bff;
}

.action-buttons .btn-view:hover {
    background-color: #0056b3;
}

.action-buttons .btn-edit {
    background-color: #ffc107;
}

.action-buttons .btn-edit:hover {
    background-color: #e0a800;
}

.action-buttons .btn-delete {
    background-color: #dc3545;
}

.action-buttons .btn-delete:hover {
    background-color: #c82333;
}

/* User List Buttons */
.action-buttons a {
    text-decoration: none;
    padding: 5px 10px;
    color: white;
    border-radius: 3px;
    margin-right: 5px;
}
.btn-edit {
    background-color: #007bff;
}
.btn-edit:hover {
    background-color: #0056b3;
}
.btn-password {
    background-color: #28a745;
}
.btn-password:hover {
    background-color: #218838;
}
.btn-delete {
    background-color: #dc3545;
}
.btn-delete:hover {
    background-color: #c82333;
}


/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.modal .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.modal .close:hover {
    color: #bbb;
    cursor: pointer;
}

/* Blue Button Styling */
.blue-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.blue-button:hover {
    background-color: #0056b3;
}

/* Container for Forms */
.container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
}

/* Form-specific styles */
.form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.form input[type="text"],
.form button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form button {
    background-color: #28a745;
    color: white;
    cursor: pointer;
}

.form button:hover {
    background-color: #218838;
}

/* Current Date */
.current-date {
    text-align: center;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Login Page Specific Styles */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 200px;
    height: auto;
}

.login-form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #218838;
}

        /* Additional styles specific to the stats page */
        .stats-container {
            max-width: 600px;
            margin: 50px auto;
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 10px;
            background-color: #fff;
            text-align: center;
        }
        .stats-container h1 {
            font-size: 24px;
            margin-bottom: 20px;
        }
        .stats-container p {
            font-size: 18px;
            margin: 10px 0;
        }
        .chart-container {
            position: relative;
            margin: auto;
            height: 400px;
            width: 400px;
        }

/* Footer Styling */
.site-footer {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    text-transform: uppercase;
}

.footer-content {
    font-size: 16px;
}

/* Heart styling to appear fatter */
.heart {
    color: red;
    font-weight: bold;
    font-size: 1.2em;
}

/* Footer Link Styling */
.footer-link {
    color: white !important;
    text-decoration: none !important;
}

.footer-link:hover {
    color: white !important;
    text-decoration: none !important;
}


/* Ensure content is not hidden behind the fixed footer */
body {
    padding-bottom: 60px;
}
