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

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

.masthead {
    background: #202033;
}

.masthead-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background-color: #202033;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    gap: 1rem;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.navbar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

main {
    min-height: calc(100vh - 200px);
}

.footer {
    background-color: #202033;
    color: white;
    padding: 1rem 0;
    margin-top: 3rem;
    text-align: center;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    text-align: center;
    vertical-align: middle;
    line-height: 1.5;
    font-weight: 400;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-link {
    background-color: transparent;
    color: #3498db;
    padding: 0.5rem 1rem;
}

.btn-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary:disabled {
    background-color: #3498db;
}

.btn-primary:disabled:hover {
    background-color: #3498db;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* Cards */
.notification-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.notification-card h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.notification-date {
    color: #7f8c8d;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.notification-content {
    margin-bottom: 1rem;
}

.notification-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #ecf0f1;
    color: #2c3e50;
    border-radius: 12px;
    font-size: 0.875rem;
}

/* Calendar */
.calendar-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

/* Tables */
.data-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.data-table thead {
    background-color: #2c3e50;
    color: white;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
}

.data-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

/* Pages */
.home-page,
.subscribe-page,
.admin-setup-page,
.admin-login-page,
.admin-dashboard,
.admin-users,
.admin-lists,
.admin-subscribers,
.admin-notifications {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-form,
.subscribe-form,
.unsubscribe-form {
    max-width: 600px;
}

.success-page,
.error-page,
.info-page {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.section {
    margin-top: 2rem;
}

.section h2 {
    margin-bottom: 1rem;
}

/* Quill Editor */
.ql-container {
    font-family: inherit;
    font-size: 1rem;
}

.ql-editor {
    min-height: 250px;
}

/* Flatpickr Calendar */
.flatpickr-calendar {
    margin: 0 auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination-btn:hover {
    background-color: #2980b9;
}

.pagination-btn.disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-info {
    font-weight: 500;
    color: #555;
}

/* Icon Buttons */
.btn-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0 !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s;
    text-decoration: none;
    vertical-align: middle;
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-icon-verify {
    background-color: #27ae60 !important;
    color: white !important;
}

.btn-icon-verify:hover {
    background-color: #229954 !important;
}

.btn-icon-unverify {
    background-color: #f39c12 !important;
    color: white !important;
}

.btn-icon-unverify:hover {
    background-color: #e67e22 !important;
}

.btn-icon-block {
    background-color: #e67e22 !important;
    color: white !important;
}

.btn-icon-block:hover {
    background-color: #d35400 !important;
}

.btn-icon-unblock {
    background-color: #27ae60 !important;
    color: white !important;
}

.btn-icon-unblock:hover {
    background-color: #229954 !important;
}

.btn-icon-edit {
    background-color: #3498db !important;
    color: white !important;
}

.btn-icon-edit:hover {
    background-color: #2980b9 !important;
}

.btn-icon-delete {
    background-color: #e74c3c !important;
    color: white !important;
}

.btn-icon-delete:hover {
    background-color: #c0392b !important;
}

.btn-icon-unsubscribe {
    background-color: #95a5a6 !important;
    color: white !important;
}

.btn-icon-unsubscribe:hover {
    background-color: #7f8c8d !important;
}

.actions-cell {
    white-space: nowrap;
}

.actions-cell form {
    display: inline-block;
    margin: 0 2px;
}

