/* General Styles */
body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f8f9fc;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 0 0 20px 20px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0.5rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
}

/* Container */
.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    margin: 1.8rem 0;
}

.stat-card {
    background: #f9f9fc;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-card h2 {
    font-size: 1.4rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Alerts */
.alert {
    background: #eafaf1;
    color: #217a41;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem; /* Add vertical spacing above the alert */
    margin-bottom: 1rem; /* Optional: Add spacing below the alert */
}


.warning {
    color: #dc3545;
    font-weight: bold;
}

/* Buttons */
.button, .add-product-button, .manage-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    color: white;
    background: #007bff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    outline: none;
    border: 2px solid transparent;
    cursor: pointer;
}

.button:hover, .add-product-button:hover, .manage-button:hover {
    background: #0056b3;
}

.danger-button {
    background: #dc3545;
}

.danger-button:hover {
    background: #c82333;
}

.add-product-button {
    background: #28a745;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.add-product-button:hover {
    background: #1e7c35;
    transform: translateY(-3px);
}

/* Manage Section */
.manage-section {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem; /* Space between buttons */
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.manage-section .danger-button {
    margin-left: 1rem;
}

.manage-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    background: #007bff;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.manage-button:hover {
    background: #0056b3;
}

/* Responsive Fixes for Buttons */
@media (max-width: 768px) {
    .manage-section {
        flex-wrap: nowrap;
        justify-content: space-around;
    }

    .manage-button {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }
}

/* Form Group */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Button Loading State */
#submitButton.loading {
    position: relative;
    overflow: hidden;
    background-color: #6c757d;
}

#submitButton.loading span {
    position: relative;
    z-index: 1;
}

#submitButton.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #28a745;
    animation: loadAnimation 2s forwards;
}

@keyframes loadAnimation {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Add Product Form - Center Form Elements */
#add-product-form form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Adjust Form Group Styles */
#add-product-form .form-group {
    width: 100%; /* Ensure consistent width */
    text-align: center; /* Align label and input center */
    margin-bottom: 1.5rem;
}

/* Update Input Field Width and Centering */
#add-product-form .form-group input {
    width: 80%; /* Reduce width to make it more proportional */
    max-width: 400px; /* Prevent it from growing too large */
    margin: 0 auto; /* Center the input field */
    text-align: center; /* Center placeholder text */
}


#add-product-form .form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
    outline: none;
}

#add-product-form button {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    color: white;
    background: #28a745;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#add-product-form button:hover {
    background: #1e7c35;
    transform: translateY(-3px);
}

#add-product-form button.loading {
    background-color: #6c757d;
}

#add-product-form button.loading span {
    position: relative;
    z-index: 1;
}

#add-product-form button.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #28a745;
    animation: loadAnimation 20s forwards;
}

/* Billing Plans Section */
.billing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1rem;
}

.billing-plan-card {
    background: #f9f9fc;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.billing-plan-card h2 {
    font-size: 1.4rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.billing-plan-card p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.billing-plan-card .button {
    margin-top: 1rem;
}

/* Downgrade Section */
#downgrade-plans {
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid #ddd;
}

/* Downgrade Button */
/* Downgrade Button - Smaller Size */
.downgrade-button {
    background: #ffc107;
    color: white;
    padding: 0.4rem 0.4rem; /* Smaller padding */
    font-size: 0.7rem; /* Smaller text size */
    border-radius: 5px; /* Slightly less rounded */
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.downgrade-button:hover {
    background: #e0a800;
    transform: translateY(-2px); /* Subtle hover effect */
}

/* Support Form Section */
.container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* Add spacing between form elements */
}

textarea {
    width: 100%;
    max-width: 500px; /* Limit width for better readability */
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    resize: none; /* Prevent resizing to maintain design consistency */
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Brands List */
.brands-list {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Add spacing between entries */
    margin: 1.5rem 0;
}

.brand-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between input and button */
}

.brand-entry input {
    flex: 1; /* Input field takes up available space */
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.brand-entry input:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Remove Brand Button */
.remove-brand-button {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 0.8rem;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.remove-brand-button:hover {
    background: #c82333;
}

/* Form Buttons */
.form-buttons {
    display: flex;
    gap: 1rem; /* Space between buttons */
    justify-content: center;
    margin-top: 1.5rem;
}

/* Cancel Button - Faint Red Text Styled as Link */
.cancel-button {
    background: none;
    color: #dc3545; /* Faint red */
    border: none;
    font-size: 0.7rem;
    text-decoration: underline; /* Styled like a link */
    cursor: pointer;
    padding: 0; /* Remove padding to look like plain text */
}

.cancel-button:hover {
    color: #c82333; /* Slightly darker red on hover */
    text-decoration: none; /* Remove underline on hover */
}

/* General green button style */
.subscribe-button {
    background-color: #28a745; /* Green color */
    color: white; /* Text color */
    border: none; /* Remove border */
    padding: 10px 20px; /* Padding for button */
    border-radius: 5px; /* Rounded corners */
    font-size: 24px; /* Font size */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease; /* Smooth hover transition */
}

/* Hover effect */
.subscribe-button:hover {
    background-color: #218838; /* Darker green on hover */
}

/* Logo Styling */
.logo-container {
    text-align: center;
    margin-bottom: 1.5rem; /* Add spacing below the logo */
}

.logo {
    height: 80px; /* Adjust height as needed */
    width: auto; /* Maintain aspect ratio */
    transition: transform 0.3s ease; /* Add a subtle hover effect */
}

.logo:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Adjust styling for the logo used as part of the text */
.logo-as-word {
    display: inline-block;
    vertical-align: middle; /* Aligns the logo with text */
}

.logo {
    height: 1.5em; /* Adjust the size to match the text */
    width: auto;   /* Maintain aspect ratio */
    margin: 0 0.2em; /* Add spacing around the logo */
}
/* Sub-Hero Section */
.sub-hero {
    background: #ffffff; /* White background for contrast */
    color: #333; /* Text color for contrast */
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    margin: -20px auto 2rem; /* Negative margin to overlap slightly */
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Subtle shadow */
}
.sub-hero h2 {
    font-size: 1.6rem;
    font-weight: bold;
    color: #007bff; /* Use primary brand color */
    margin-bottom: 0.8rem;
    letter-spacing: 1px; /* Subtle spacing for better readability */
}

.sub-hero p {
    font-size: 0.9rem;
    color: #555; /* Slightly darker for better contrast */
    margin-top: -0.5rem;
}

.policy-box {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f9f9fc;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left; /* Ensure content is aligned to the left */
    font-size: 0.9rem;
    color: #333;
}

.policy-box p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.policy-box label {
    font-size: 0.9rem;
    color: #555;
}

.policy-box input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Fix for bullet points */
.policy-content ul {
    list-style-type: disc; /* Standard disc style */
    margin-left: 20px; /* Add consistent left margin */
    padding-left: 20px; /* Ensure bullets are indented */
    text-align: left; /* Align text and bullets to the left */
}

.policy-content ul li {
    margin-bottom: 10px; /* Add space between items */
    line-height: 1.6; /* Improve readability */
    text-align: left; /* Ensure text aligns left */
}
.policy-content {
    font-family: Arial, sans-serif; /* Set a consistent font-family */
    font-size: 1rem; /* Set a uniform font size */
    line-height: 1.6; /* Set consistent spacing between lines */
    color: #333; /* Standard text color */
    margin: 0 auto; /* Center content horizontally */
    padding: 1rem 2rem; /* Add padding for spacing inside the container */
}

.policy-content h2, .policy-content h3, .policy-content h4 {
    font-size: 1.2rem; /* Standardize headings to a consistent size */
    font-weight: bold; /* Make headings bold */
    color: #222; /* Slightly darker color for headings */
    margin-top: 1rem; /* Add space above headings */
    margin-bottom: 0.5rem; /* Add space below headings */
}

.policy-content ul {
    list-style-type: disc; /* Standard disc style */
    margin-left: 20px; /* Indent bullet points */
    padding-left: 20px; /* Ensure proper alignment */
}

.policy-content ul li {
    font-size: 1rem; /* Ensure list items use the same font size as text */
    line-height: 1.6; /* Maintain consistent line spacing */
    margin-bottom: 0.5rem; /* Add space between bullet points */
}

.policy-content p {
    font-size: 1rem; /* Consistent font size for paragraphs */
    line-height: 1.6; /* Consistent line spacing */
    margin-bottom: 1rem; /* Space between paragraphs */
    color: #333; /* Match color with the rest of the text */
}

.policy-content strong {
    font-weight: bold; /* Highlight important text */
    color: #000; /* Use a slightly darker color for emphasis */
}

.policy-content address {
    font-style: normal; /* Ensure address text matches the rest */
    font-size: 1rem; /* Standard font size for the address */
    line-height: 1.6; /* Maintain line spacing */
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
    position: relative;
    margin: 10% auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    width: 50%;
    max-height: 70%;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.modal-footer {
    text-align: center;
    margin-top: 20px;
}
.modal-footer button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}



/* Small Checkbox Styling */
.form-group input[type="checkbox"] {
    width: 18px; /* Smaller size */
    height: 18px;
    accent-color: #007bff; /* Blue color for the checkbox */
    cursor: pointer;
}

/* Checkbox Label Styling */
.checkbox-label {
    font-size: 0.9rem; /* Slightly smaller text */
    font-weight: normal; /* Lighter font weight */
    color: #333; /* Standard text color */
    display: flex;
    align-items: center;
    gap: 0.3rem; /* Space between the checkbox and label */
    margin-left: auto; /* Push it to the right */
    cursor: pointer;
}

/* Adjust alignment for smaller screens */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkbox-label {
        margin-left: 0;
        margin-top: 0.5rem; /* Add spacing for stacked layout */
    }
}
