/* File Path: public_html/corereminder/assets/css/style.css */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}

a {
    text-decoration: none;
}

.cr-page-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
}

.cr-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    margin-bottom: 18px;
}

.cr-topbar h1 {
    margin: 0;
    font-size: 28px;
    color: #0f172a;
}

.cr-topbar p {
    margin: 6px 0 0;
    color: #64748b;
}

.cr-top-actions,
.cr-voice-actions,
.cr-modal-actions,
.cr-reminder-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cr-btn {
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    transition: 0.2s ease;
}

.cr-btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.cr-btn-sm {
    padding: 8px 12px;
    font-size: 13px;
}

.cr-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.cr-btn-success {
    background: #16a34a;
    color: #ffffff;
}

.cr-btn-warning {
    background: #f59e0b;
    color: #111827;
}

.cr-btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.cr-btn-light {
    background: #e5e7eb;
    color: #111827;
}

.cr-alert {
    position: relative;
    border-radius: 14px;
    padding: 14px 44px 14px 16px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.cr-alert-info {
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    color: #075985;
}

.cr-alert-close {
    position: absolute;
    right: 12px;
    top: 10px;
    border: 0;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: inherit;
}

.cr-voice-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

.cr-voice-panel h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.cr-voice-panel p {
    margin: 4px 0;
    color: #cbd5e1;
}

.cr-debug-line {
    font-size: 13px;
    color: #93c5fd !important;
}

.cr-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.cr-stat-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.cr-stat-card span {
    display: block;
    color: #64748b;
    margin-bottom: 8px;
}

.cr-stat-card strong {
    display: block;
    font-size: 30px;
    color: #0f172a;
}

.cr-section {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.cr-section h2 {
    margin: 0 0 16px;
    color: #0f172a;
}

.cr-empty {
    text-align: center;
    padding: 36px 20px;
    color: #64748b;
}

.cr-empty h3 {
    color: #0f172a;
}

.cr-reminder-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cr-reminder-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
}

.cr-card-overdue {
    border-color: #fecaca;
    background: #fff7f7;
}

.cr-reminder-main {
    flex: 1;
    min-width: 0;
}

.cr-reminder-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.cr-reminder-title-row h3 {
    margin: 0;
    color: #111827;
    font-size: 18px;
}

.cr-reminder-details {
    color: #4b5563;
    line-height: 1.5;
    margin: 10px 0;
}

.cr-reminder-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #64748b;
    font-size: 14px;
}

.cr-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.cr-badge-pending {
    background: #dbeafe;
    color: #1d4ed8;
}

.cr-badge-completed {
    background: #dcfce7;
    color: #15803d;
}

.cr-badge-overdue {
    background: #fee2e2;
    color: #b91c1c;
}

.cr-badge-snoozed {
    background: #fef3c7;
    color: #92400e;
}

.cr-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 9999;
}

.cr-modal-show {
    display: flex;
}

.cr-modal-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 22px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
}

.cr-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
}

.cr-modal-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.cr-modal-box h2 {
    margin: 0 0 10px;
    color: #0f172a;
}

.cr-modal-box p {
    margin: 0 0 20px;
    color: #475569;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .cr-page-wrap {
        padding: 12px;
    }

    .cr-topbar,
    .cr-voice-panel,
    .cr-reminder-card {
        flex-direction: column;
        align-items: stretch;
    }

    .cr-topbar h1 {
        font-size: 24px;
    }

    .cr-stats {
        grid-template-columns: 1fr;
    }

    .cr-top-actions,
    .cr-voice-actions,
    .cr-modal-actions,
    .cr-reminder-actions {
        width: 100%;
    }

    .cr-btn {
        width: 100%;
        text-align: center;
    }

    .cr-reminder-title-row {
        flex-direction: column;
    }
}