:root {
    --primary: #0071e3;
    --primary-light: #147ce5;
    --secondary: #86868b;
    --text: #1d1d1f;
    --text-secondary: #86868b;
    --background: #ffffff;
    --background-secondary: #f5f5f7;
    --border: #d2d2d7;
    --success: #34c759;
    --warning: #ff9500;
    --danger: #ff3b30;
    --border-radius: 12px;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
    font-size: 17px;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

header {
    text-align: center;
    padding: 40px 0;
}

h1 {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.003em;
    color: var(--text);
    margin-bottom: 8px;
}

.tagline {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.004em;
    max-width: 600px;
    margin: 0 auto 10px;
}

.subtitle {
    font-size: 19px;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background: var(--background);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -0.003em;
}

h3 {
    font-size: 21px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 17px;
    color: var(--text);
}

small {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 12px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 17px;
    color: var(--text);
    background-color: var(--background);
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 125, 250, 0.1);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 6L0 1h10z' fill='%2386868b'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 10px;
    padding-right: 40px;
}

textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 980px;
    padding: 12px 22px;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-width: 120px;
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--background-secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #ff2d22;
}

.btn-success {
    background: var(--success);
}

.btn-success:hover {
    background: #30b955;
}

.btn-large {
    padding: 14px 30px;
    font-size: 19px;
}

#result {
    display: none;
    margin-top: 30px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

footer {
    text-align: center;
    margin-top: 60px;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 14px;
    border-top: 1px solid var(--border);
    background-color: var(--background-secondary);
}

.tabs {
    display: flex;
    background: var(--background-secondary);
    border-radius: 980px;
    padding: 4px;
    margin-bottom: 30px;
    position: sticky;
    top: 20px;
    z-index: 100;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-sm);
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    border-radius: 980px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
}

.tab.active {
    background: var(--background);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.recurrence-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.recurrence-option {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    background: var(--background);
}

.recurrence-option:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.recurrence-option.selected {
    border-color: var(--primary);
    background: rgba(0, 113, 227, 0.05);
}

.recurrence-name {
    font-weight: 500;
    font-size: 15px;
    color: var(--text);
}

/* Custom toggle switch */
.toggle-container {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.toggle-label {
    margin-left: 12px;
    font-weight: 500;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e4e4e4;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 27px;
    width: 27px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 113, 227, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.reminder-list {
    margin-top: 30px;
    display: grid;
    gap: 16px;
}

.reminder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: var(--border-radius);
    background: var(--background);
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.reminder-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.reminder-details {
    flex: 1;
}

.reminder-details h3 {
    margin-bottom: 4px;
    font-size: 17px;
}

.reminder-time {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reminder-actions {
    display: flex;
    gap: 8px;
}

.reminder-preview {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 24px;
    margin-top: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.reminder-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.preview-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
}

.preview-message {
    font-size: 17px;
    margin-bottom: 12px;
    color: var(--text);
}

.preview-date {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.template-ios .preview-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text);
}

.template-ios .preview-app-icon {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 5px;
    margin-right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.template-ios .preview-app-name {
    font-weight: 500;
}

.template-ios .preview-time {
    margin-left: auto;
    color: var(--text-secondary);
}

.recurrence-details {
    background: var(--background-secondary);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--border);
}

.empty-state-title {
    font-weight: 500;
    font-size: 21px;
    margin-bottom: 8px;
    color: var(--text);
}

.empty-state-description {
    max-width: 400px;
    margin: 0 auto 24px;
    color: var(--text-secondary);
}

.settings-option {
    margin-bottom: 24px;
}

.settings-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

/* Media Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }
    
    .tagline {
        font-size: 21px;
    }
    
    .recurrence-options {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    .tagline {
        font-size: 19px;
    }
    
    .card {
        padding: 20px;
    }
    
    .recurrence-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tabs {
        width: 100%;
    }
}

/* ===== NEW STYLES FOR VERIFICATION FLOW ===== */

/* Verification explanatory text */
.verification-explainer {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Code input styling */
#code {
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    text-align: center;
    font-weight: 500;
}

/* Verified badge */
.verified-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #007AFF; /* iOS blue instead of green */
    color: white;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.verification-notice {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(0, 122, 255, 0.1); /* iOS blue background */
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* Add styles for the usage display */
.usage-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 122, 255, 0.05);
    border-radius: 0.5rem;
}

.usage-display {
    font-size: 1.5rem;
    font-weight: 600;
    color: #007AFF;
    margin: 0.5rem 0;
    text-align: center;
}

.future-feature {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    text-align: center;
}

.future-feature h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.future-feature p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Settings verified number display */
.verification-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 113, 227, 0.1);
    border-radius: 0.5rem;
}

.verified-phone-display {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    margin: 0.5rem 0;
}

/* Spinner for loading states */
button .spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

/* Button with spinner */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Hourly interval options more complete */
.hourly-interval-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.hourly-option {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.hourly-option:hover {
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

.hourly-option.selected {
    border-color: var(--primary);
    background: rgba(0, 113, 227, 0.05);
}

/* Make sure verification forms look good on mobile */
@media (max-width: 480px) {
    #verification-section,
    #code-section {
        padding: 1rem;
    }
    
    .verification-explainer {
        font-size: 0.9rem;
    }
    
    .hourly-interval-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Reminder item enhanced styling */
.reminder-info {
    flex: 1;
}

.reminder-title {
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 4px;
}

.reminder-message {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 8px;
}

.reminder-status {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary);
}

.reminder-status.completed {
    background: rgba(52, 199, 89, 0.1);
    color: var(--success);
}

.reminder-status.pending {
    background: rgba(255, 149, 0, 0.1);
    color: var(--warning);
}

.btn-icon {
    width: 32px;
    height: 32px;
    min-width: unset;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.btn-delete {
    background: var(--danger);
}

.btn-delete:hover {
    background: #ff2d22;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 12px 20px;
    min-width: 250px;
    max-width: 90vw;
    animation: toastIn 0.3s, toastOut 0.3s 2.7s;
    opacity: 0;
    transform: translateY(50px);
    animation-fill-mode: forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-info {
    border-left: 4px solid var(--primary);
}

.toast-warning {
    border-left: 4px solid var(--warning);
}

/* Admin Panel Styles */
.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-card {
    background: var(--background);
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.admin-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.admin-table th {
    text-align: left;
    padding: 12px;
    background: var(--background-secondary);
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.admin-table tr:hover {
    background: rgba(0, 113, 227, 0.05);
}

.admin-search {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-search input {
    flex: 1;
}

/* Fix for the empty state icon */
.empty-state-icon {
    font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;
}