/* File: css/custom-reminder-popup.css */

/* Modern Popup Container */
.modern-popup {
    background: rgba(17, 24, 39, 0.6) !important;
    backdrop-filter: blur(8px) !important;
   
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000 !important;
    overflow: hidden !important;
}

#reminders-container,
#add-edit-reminder-container {
    background: #ffffff !important;
    border-radius: 1rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    padding: 2rem !important;
    max-width: 28rem !important;
    width: 100% !important;
    
}

/* Header Styling */
#reminders-container,
#add-edit-reminder-container {
    background: #ffffff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 2rem !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

/* Close Button */
.close-popup {
    padding: 0.5rem !important;
    border-radius: 50% !important;
    
}

.close-popup:hover {
    background-color: #f3f4f6 !important;
}

/* Add Reminder Button */
.add-reminder-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #ffffff !important;
    padding: 0.75rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    
    width: 100 !important;
    margin-bottom: 1.5rem !important;
}

.add-reminder-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3) !important;
}

/* Tabs */
.reminder-tab {
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 2px solid transparent !important;
    
}

.reminder-tab:hover {
    color: #2563eb !important;
    border-color: #93c5fd !important;
}

.reminder-tab.active {
    color: #2563eb !important;
    border-color: #2563eb !important;
}

/* Reminder Record */
.reminder-record {
    background: #ffffff !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
    
}

.reminder-record:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

/* Reminder Type Highlights */
.reminder-record.type-bath-time {
    border-left: 4px solid #3b82f6 !important;
    background: linear-gradient(90deg, #eff6ff 0%, #ffffff 20%) !important;
}

.reminder-record.type-grooming {
    border-left: 4px solid #22c55e !important;
    background: linear-gradient(90deg, #f0fdf4 0%, #ffffff 20%) !important;
}

.reminder-record.type-poop-time {
    border-left: 4px solid #8b5cf6 !important;
    background: linear-gradient(90deg, #f5f3ff 0%, #ffffff 20%) !important;
}

.reminder-record.type-feeding {
    border-left: 4px solid #f59e0b !important;
    background: linear-gradient(90deg, #fffbeb 0%, #ffffff 20%) !important;
}

.reminder-record.type-other {
    border-left: 4px solid #6b7280 !important;
    background: linear-gradient(90deg, #f3f4f6 0%, #ffffff 20%) !important;
}

.reminder-record.status-red {
    border-left: 4px solid #ef4444 !important;
    background: linear-gradient(90deg, #fef2f2 0%, #ffffff 20%) !important;
}

.reminder-record.status-yellow {
    border-left: 4px solid #f59e0b !important;
    background: linear-gradient(90deg, #fffbeb 0%, #ffffff 20%) !important;
}

.reminder-record.status-green {
    border-left: 4px solid #22c55e !important;
    background: linear-gradient(90deg, #f0fdf4 0%, #ffffff 20%) !important;
}

.reminder-record.status-completed {
    border-left: 4px solid #6b7280 !important;
    background: linear-gradient(90deg, #f3f4f6 0%, #ffffff 20%) !important;
}

/* Reminder Type Badge */
.reminder-type-badge {
    color: #ffffff !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 9999px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.reminder-type-badge.type-bath-time {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}

.reminder-type-badge.type-grooming {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

.reminder-type-badge.type-poop-time {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
}

.reminder-type-badge.type-feeding {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.reminder-type-badge.type-other {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
}

/* Reminder Details */
.reminder-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.reminder-name {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin: 0 !important;
}

.reminder-status {
    display: inline-flex !important;
    align-items: center !important;
}

.missed-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
}

.due-badge {
    background: #000000 !important;
    color: #ffffff !important;
}

.completed-badge {
    background: #0d9e42 !important;
    color: #ffffff !important;
}

.late-badge {
    background:  #000000 !important;
    color: #ffffff !important;
}

/* Action Buttons */
.reminder-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
}

.modern-action-btn {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
    flex: 1 0 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
}

.modern-action-btn i {
    font-size: 0.75rem !important;
}

.modern-action-btn-edit {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #ffffff !important;
}

.modern-action-btn-edit:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    transform: translateY(-1px) !important;
}

.modern-action-btn-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
}

.modern-action-btn-delete:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    transform: translateY(-1px) !important;
}

.modern-action-btn-complete {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #ffffff !important;
}

.modern-action-btn-complete:hover {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    transform: translateY(-1px) !important;
}

.modern-action-btn-revoke {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
}

.modern-action-btn-revoke:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    transform: translateY(-1px) !important;
}

/* Form Inputs */
.modern-input {
    width: 100 !important;
    padding: 0.75rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    background: #f9fafb !important;
    
}

.modern-input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

/* Primary Button */
.modern-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #ffffff !important;
    
}

.modern-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3) !important;
}



/* Responsive Design */
@media (max-width: 640px) {
    #reminders-container,
    #add-edit-reminder-container {
        max-width: 90% !important;
        padding: 1.5rem !important;
    }

    .reminder-tab {
        font-size: 1rem !important;
        padding-bottom: 0.5rem !important;
    }

    .reminder-record {
        padding: 1rem !important;
    }

    .reminder-name {
        font-size: 1.1rem !important;
    }

    .reminder-status {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .reminder-actions {
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
    }

    .modern-action-btn {
        flex: 1 0 calc(32% - 0.16rem) !important;
        padding: 0.25rem 0.5rem !important;
        font-size: 0.7rem !important;
        text-align: center !important;
    }

    .modern-action-btn i {
        font-size: 0.7rem !important;
    }

    .add-reminder-btn {
        padding: 0.75rem !important;
        font-size: 0.875rem !important;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 480px) {
    .reminder-actions {
        flex-wrap: nowrap !important;
        gap: 0.25rem !important;
    }

    .modern-action-btn {
        flex: 1 0 calc(33.33% - 0.16rem) !important;
        padding: 0.25rem 0.375rem !important;
        font-size: 0.65rem !important;
        text-align: center !important;
    }

    .modern-action-btn i {
        font-size: 0.65rem !important;
    }

    .reminder-details {
        gap: 0.5rem !important;
    }
}