body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h3 {
    margin: 0;
}
/* Top Bar */
.top-bar {
    background-color: #007bff;
    color: white;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logout-link {
    color: white;
    margin-left: 20px;
    text-decoration: none;
}
/* Side Menu */
.side-menu {
    width: 200px;
    background-color: #f8f9fa;
    height: 100vh;
    position: fixed;
    top: 50px;
    left: 0;
    padding-top: 10px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.side-menu ul {
    list-style: none;
    padding: 0;
}

.side-menu ul li {
    padding: 10px 20px;
}

.side-menu ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.side-menu ul li a:hover {
    background-color: #e9ecef;
    border-radius: 5px;
}
/* Dashboard Content */
.dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.welcome {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 150px;
}

.stat-card h3 {
    margin: 0;
    font-size: 2rem;
    color: #007bff;
}

.stat-card p {
    margin: 5px 0 0;
    font-size: 1rem;
    color: #555;
}

.quick-links {
    display: flex;
    gap: 20px;
}

.quick-link {
    padding: 15px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1rem;
}

.quick-link:hover {
    background-color: #0056b3;
}
/* Main Content */
.main-content {
    margin-left: 200px;
    margin-top: 50px;
    padding: 20px;
}
/* Login Page */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    background-color: #f8f9fa;
}

.login-container h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.login-container form {
    display: flex;
    flex-direction: column;
    width: 300px;
}

.login-container form div {
    margin-bottom: 1rem;
}

.login-container form input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-container form button {
    padding: 10px;
    font-size: 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-container form button:hover {
    background-color: #0056b3;
}

.error {
    color: red;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
/* Table Improvements */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    margin: 0 auto;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.styled-table th, .styled-table td {
    padding: 12px 15px;
    text-align: left;
}

.styled-table th {
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

.styled-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.styled-table tr:hover {
    background-color: #f1f1f1;
}

.no-results {
    text-align: center;
    color: #555;
    padding: 20px;
    font-style: italic;
}

/* Form Styles */
.filter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

filter-form input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.filter-button {
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    font-size: 0.9rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.filter-button:hover {
    background-color: #0056b3;
}
/* Clients Page Header */
.clients-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.clients-header h1 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.add-client-button {
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.add-client-button i {
    margin-right: 5px;
}

.add-client-button:hover {
    background-color: #0056b3;
}
/* Action Links */
.action-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 10px;
}

.action-link.delete {
    color: #dc3545;
}

.action-link:hover {
    text-decoration: underline;
}
/* Alerts */
.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

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

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
/* Form Styling */
.form-container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 500px;
    margin: 20px auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.submit-button, .cancel-button {
    display: inline-block;
    padding: 10px 15px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    background-color: #007bff;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #0056b3;
}

.cancel-button {
    background-color: #6c757d;
    margin-left: 10px;
}

.cancel-button:hover {
    background-color: #5a6268;
}
.campaigns-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.campaigns-header {
    display: flex;
    justify-content: space-between; /* Title on the left, button on the right */
    align-items: center;
    margin-bottom: 20px;
}
.campaigns-header h1 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}
.add-campaign-button {
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}
.add-campaign-button i {
    margin-right: 5px;
}

.add-campaign-button:hover {
    background-color: #0056b3;
}
/* General Styling for Select Dropdowns */
.form-group select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    appearance: none; /* Removes default dropdown styling */
    -webkit-appearance: none; /* For Safari */
    -moz-appearance: none; /* For Firefox */
    background-image: url('https://cdn.jsdelivr.net/gh/twbs/icons/icons/caret-down.svg'); /* Custom dropdown arrow */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* Form Group for Proper Layout */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

/* Responsive Fix for Smaller Screens */
@media (max-width: 768px) {
    .form-group select {
        font-size: 0.9rem;
    }
}
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.add-button {
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.add-button:hover {
    background-color: #0056b3;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.session-info a {
    color: white;
    text-decoration: none;
}

.session-info a:hover {
    text-decoration: underline;
}
/* Statistics */
.stats-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-box {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    width: 30%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-box h3 {
    font-size: 2rem;
    margin: 0;
    color: #007bff;
}

.stat-box p {
    margin: 0;
    font-size: 1.2rem;
}
/* Table */
.recent-urls table {
    width: 100%;
    border-collapse: collapse;
}

.recent-urls th, .recent-urls td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.recent-urls th {
    background-color: #007bff;
    color: white;
}