* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Header */
.header {
    background-color: white;
    border-bottom: 1px solid #e9ecef;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #333;
}

.profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* Main Content */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 3rem;
}

.btn-primary {
    background-color: #6c7bff;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background-color: #5a6cff;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #6C7BFF99;
    padding: calc(1rem - 2px) calc(2rem - 2px); /* Adjust for border */
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, color 0.2s;
}

.btn-secondary:hover {
    background-color: transparent;
    border: 2px solid #6c7bff;
}


/* Home */
.preview {
    background: #fff;
    margin-bottom: 20px; /* Adds spacing between preview sections */
    padding: 20px; /* Adds internal spacing within each preview section */
    border-radius: 5px; /* Optional: adds rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: adds a subtle shadow */
    cursor: pointer;
}

.preview:hover {
    /* You can add additional hover effects here if desired */
    background-color: #f0f0f0; /* Example: Change background color on hover */
}

.preview h2 {
    margin-top: 0; /* Removes default top margin for better spacing control */
}

.preview p {
    color: #666;
}

.preview .campaign_preview_date {
    margin-bottom: 10px;
    margin-top: 10px;
}

/* Create campaign */
.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.email-textarea {
    min-height: 150px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 0 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .page-title {
        font-size: 2rem;
    }
}

/* Campaign emails */
#checkbox-container {
    display: none;
    margin-top: 20px;
}

#checkbox-list {
    margin-top: 20px;
    list-style-type: none;
}