/* Existing styles */
body { font-family: Arial, sans-serif; margin: 0; background: #E0F2F1; }

/* Header Styles */
.header {
    width: -webkit-fill-available;
    position: fixed;
    background-color: #008374;  /* Teal background */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    font-family: Arial, sans-serif;
}

/* Left Section (Email Sender) */
.header-left h2 {
    margin: 0 20px 0px 50px;
    font-size: 22px;
    font-weight: bold;
}

/* Right Section (Status, Credits, Logout) */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;  /* Space between elements */
}

/* Status Button */
.status-icon {
    background-color: #ffc107;  /* Yellow background */
    color: black;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-icon i {
    font-size: 16px;
}

/* Credits Styling */
#user-credits {
    font-size: 14px;
    color: #00ff00;  /* Lime green text */
    font-weight: bold;
}

/* Logout Button */
.header-right a {
    color: red;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .header-right {
        flex-direction: column;
        gap: 10px;
    }
}


.main-content {
    padding: 20px;
    padding-top: 70px; /* Adjust for fixed header */
    min-height: calc(100vh - 70px); /* Full height minus header/footer */
}

.sidebar {
    width: 250px;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    background: #009688;
    color: white;
    padding: 20px 0;
}

.sidebar a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
}

.sidebar a:hover {
    background: #00796B;
}

/* New styles for Send Emails page */
.message-container {
    margin-bottom: 20px;
}

.success-message {
    color: #8BC34A;
    font-weight: bold;
}

.error-message {
    color: #D32F2F;
    font-weight: bold;
}

.email-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.hint {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.send-button {
    background-color: #009688;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.send-button:hover {
    background-color: #00796B;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 300px;
    max-width: 90%;
    margin: 100px auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #000;
}

#live-status-content p {
    margin: 10px 0;
}

.table-container {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
}

.campaign-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.campaign-table th, .campaign-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.campaign-table th {
    background-color: #FFCA28;
    color: #333;
    font-weight: bold;
}

.campaign-table tr:nth-child(even) {
    background-color: #F1F8E9;
}

.campaign-table tr:hover {
    background-color: #E0F2F1;
}

.view-button {
    display: inline-block;
    padding: 5px 10px;
    background-color: #8BC34A;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.view-button:hover {
    background-color: #7CB342;
}

.no-campaigns {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 20px;
}


/* Existing styles (ensure these are present) */

/* Sidebar styles */
.sidebar {
    width: 250px;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    color: white;
    padding: 20px 0;
    transition: transform 0.3s ease; /* Smooth animation for sliding */
    z-index: 1001; /* Above main content */
    transform: translateX(-250px); /* Hidden by default */
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

.sidebar .logo img {
    max-width: 80%;
    height: auto;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin: 5px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: flex;
    font-size: 16px;
    transition: background-color 0.3s;
}

.sidebar ul li a:hover {
    background: #444;
}

/* Admin-specific style (optional) */
.sidebar ul li.admin-item a {
    background: #0056b3;
}

.sidebar ul li.admin-item a:hover {
    background: #004085;
}

/* Burger Menu (visible on all devices) */
.burger-menu {
    display: block;
    position: relative;
    top: 20px;
    left: 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1002;
    color: white;
    background: #333;
    padding: 5px 10px;
    border-radius: 4px;
    width: 23px;
}

/* Checkbox hack for toggling sidebar */
#menu-toggle {
    display: none;
}

#menu-toggle:checked ~ .sidebar {
    transform: translateX(0); /* Slide in from left */
}

#menu-toggle:checked ~ .main-content {
    margin-left: 250px; /* Shift main content when sidebar is open */
}

.buy-now-link{
    text-decoration: none;
    padding: 10px;
    background: rgb(58, 22, 189);
    color: rgb(255, 255, 255);
    border-radius: 10px;
    margin-right: 10px;
}


.campaign-details p {
    font-size: 16px;
    color: #333;
    margin: 5px 0;
}

.campaign-details strong {
    color: #009688;
}

.email-status-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #FFFFFF;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.email-status-table th, .email-status-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.email-status-table th {
    background-color: #009688;
    color: #FFFFFF;
    font-weight: bold;
}

.email-status-table tr:nth-child(even) {
    background-color: #E0F2F1;
}

.email-status-table tr:hover {
    background-color: #f1f1f1;
}

.email-status-table td:nth-child(2) {
    font-weight: bold;
}

.email-status-table td:nth-child(2):contains('Sent') {
    color: #8BC34A;
}

.email-status-table td:nth-child(2):contains('Bounced') {
    color: #D32F2F;
}

.email-status-table td:nth-child(2):contains('Opened') {
    color: #FFCA28;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #009688;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.back-link:hover {
    background-color: #00796B;
}

.success-message {
    color: #8BC34A;
    font-weight: bold;
}

.error-message {
    color: #D32F2F;
    font-weight: bold;
}


/* Profile Page Styles */
.main-content {
    margin: 20px auto;
    background: #E0F2F1;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.main-content h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #009688;
}

.main-content p {
    font-size: 16px;
    margin: 10px 0;
    color: #333;
}

.main-content p[style*="color: red"] {
    color: #D32F2F !important;
    font-weight: bold;
}

.main-content p[style*="color: green"] {
    color: #8BC34A !important;
    font-weight: bold;
}

/* Form Styles */
.main-content form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.main-content form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #009688;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.main-content form input::placeholder {
    color: #666;
}

.main-content form button {
    background-color: #009688;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.main-content form button:hover {
    background-color: #00796B;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background: #FFFFFF;
    width: 350px;
    max-width: 90%;
    margin: 100px auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-content h3 {
    color: #009688;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #000;
}


/* Login Container */
.login-container {
    width: 100%;
    max-width: 400px;
    margin: 109px auto;
    padding: 20px;
    background-color: #f8f9fa; /* Light Gray Background */
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: Arial, sans-serif;
}

/* Login Heading */
.login-container h2 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #008374; /* Teal color */
}

/* Error Message */
.error-message {
    color: red;
    background-color: #ffe6e6;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Form Styling */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Input Fields */
.form-group input {
    width: 80%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: #008374;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 131, 116, 0.3);
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background-color: #008374; /* Teal */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.login-button:hover {
    background-color: #005f56;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 15px;
    }
}

/* Register Container */
.register-container {
    width: 100%;
    max-width: 400px;
    margin: 78px auto;
    padding: 20px;
    background-color: #f8f9fa; /* Light Gray Background */
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: Arial, sans-serif;
}

/* Register Heading */
.register-container h2 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #008374; /* Teal color */
}

/* Success & Error Messages */
.success-message {
    color: green;
    background-color: #e6ffe6;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.error-message {
    color: red;
    background-color: #ffe6e6;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Form Styling */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Input Fields */
.form-group input {
    width: 80%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: #008374;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 131, 116, 0.3);
}

/* Register Button */
.register-button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background-color: #008374; /* Teal */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.register-button:hover {
    background-color: #005f56;
}

/* Login Link */
.register-container p {
    margin-top: 15px;
    font-size: 14px;
}

.register-container a {
    color: #008374;
    font-weight: bold;
    text-decoration: none;
}

.register-container a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
    .register-container {
        width: 90%;
        padding: 15px;
    }
}

/* Footer Styling */
footer {
    background-color: #008374; /* Teal background */
    color: white;
    text-align: center;
    padding: 15px 10px;
    font-size: 14px;
}

/* Footer Text */
footer p {
    margin: 0;
    font-weight: bold;
}

.warning-message {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    animation: blink 1s infinite;
    padding: 10px;
}

@keyframes blink {
    0% { color: red; }
    33% { color: yellow; }
    66% { color: blue; }
    100% { color: red; }
}

footer>a{
    color:#ffff00;
    text-decoration:none;
}

p>a{
    color:#ffff00;
    text-decoration:none;
}

