:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --background: #f9fafb;
    --surface: #ffffff;
    --text: #111827;
    --text-muted: #4b5563;
    --border: #e5e7eb;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #10b981;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text);
    margin: 0;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 600px;
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

h1, h2 { margin-top: 0; color: var(--text); }
p { color: var(--text-muted); line-height: 1.5; }

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

input[type="text"], input[type="email"], input[type="password"], input[type="datetime-local"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn:hover { background-color: var(--primary-hover); }
.btn-link { background: none; color: var(--primary); padding: 0; width: auto; font-weight: 500; }
.btn-link:hover { text-decoration: underline; background: none; }

.btn-danger { background-color: var(--danger); width: auto; padding: 0.4rem 0.8rem; font-size: 0.875rem; }
.btn-danger:hover { background-color: var(--danger-hover); }

.reminder-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.reminder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: var(--background);
}

.reminder-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reminder-text { font-weight: 500; }
.reminder-time { font-size: 0.8125rem; color: var(--text-muted); }
.badge { display: inline-block; font-size: 0.75rem; padding: 0.2rem 0.5rem; border-radius: 4px; font-weight: 600; width: fit-content;}
.badge-pending { background: #fee2e2; color: #991b1b; }
.badge-sent { background: #d1fae5; color: #065f46; }

.error-msg { color: var(--danger); font-size: 0.875rem; margin-bottom: 1rem; }

/* 🌟 Frequency Badge Variants */
.badge-once { background: #e0f2fe; color: #0369a1; }     /* Soft Blue */
.badge-daily { background: #fef3c7; color: #d97706; }    /* Soft Orange/Amber */
.badge-weekly { background: #f3e8ff; color: #7e22ce; }   /* Soft Purple */
.badge-monthly { background: #e0f2fe; color: #0369a1; }  /* Soft Blue/Cyan */

/* Small layout wrapper to keep multiple badges row-aligned */
.badge-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

/* 🌟 Edit Modal Layout Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}
.modal.active { display: flex; }
.modal-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}
.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.btn-secondary { background-color: #9ca3af; }
.btn-secondary:hover { background-color: #4b5563; }
.btn-warning { background-color: #f59e0b; width: auto; padding: 0.4rem 0.8rem; font-size: 0.875rem; }
.btn-warning:hover { background-color: #d97706; }
.action-group { display: flex; gap: 0.5rem; align-items: center; }

/* Smooth interactive transformations across the app */
.btn, .nav-item, .nav-btn-outline, .feature-card, input {
    transition: all 0.2s ease-in-out;
}

/* Subtle scaling on button click */
.btn:active {
    transform: scale(0.98);
}

/* Give inputs an outer emerald glow when focused */
input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    background-color: rgba(255, 255, 255, 0.01);
}

/* Improve readability of lists with alternating row highlights */
.reminder-item {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
}
.reminder-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Style the parent input container */
input[type="datetime-local"] {
    color-scheme: dark; /* 🌟 Force browser to render its popup native picker in dark mode */
    background-color: var(--background);
    color: var(--text);
    border: 1px solid var(--border);
}

/* Style the calendar/clock icon inside the input box */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    background-color: var(--primary); /* Emerald color */
    padding: 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
    /* Optional: If the native icon isn't turning white, you can force it using a CSS filter */
    filter: invert(1) brightness(0.5); 
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    background-color: var(--primary-hover);
}

.powered-by {
    width: 100%;
    max-width: 600px;
    margin-top: 1.5rem; /* Spacing below your .container card */
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary, #6b7280); /* Muted text color */
}

.powered-by a {
    color: var(--primary, #3b82f6); /* Falls back to blue if token missing */
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.powered-by a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

