/**
 * PWA Styles - Modern Design with Full CSS Variable Control
 * Mobile-first responsive design for Birthday Reminder PWA
 */

:root {
    /* Primary Colors - Change these to customize your entire app */
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --primary-light: #8b9ef5;
    --secondary-color: #764ba2;
    --secondary-dark: #5f3a82;
    --secondary-light: #9d6bc9;
    
    /* Status Colors */
    --success-color: #10b981;
    --success-light: #d1fae5;
    --danger-color: #ef4444;
    --danger-light: #fee2e2;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --info-color: #3b82f6;
    --info-light: #dbeafe;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing: 12px;
    --spacing-md: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    /* Layout */
    --nav-height: 70px;
    --header-height: 60px;
    --max-width: 600px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--gray-50);
    color: var(--gray-900);
    padding-bottom: var(--nav-height);
    padding-top: var(--header-height);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.pwa-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing);
    margin: 0;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    cursor: pointer;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    color: var(--white);
}

.btn-icon:active {
    transform: scale(0.95);
}

/* Main Content */
.pwa-content {
    padding: var(--spacing-lg);
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: calc(100vh - var(--header-height) - var(--nav-height));
}

/* Date Badge */
.date-badge {
    background: var(--white);
    padding: var(--spacing) var(--spacing-md);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--gray-700);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: 0;
}

.section-title i {
    color: var(--primary-color);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

/* Contact Card - Modern Design */
.contact-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.contact-card:hover::before {
    opacity: 1;
}

.birthday-card {
    border-left: 4px solid var(--warning-color);
    background: linear-gradient(135deg, var(--white) 0%, #fffbeb 100%);
}

.birthday-card::before {
    background: var(--gradient-warning);
}

.contact-card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing);
    width: 100%;
}

.contact-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    position: relative;
}

.contact-avatar::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius);
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
}

.contact-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.contact-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-phone {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-phone-link {
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all var(--transition);
    white-space: nowrap;
}

.contact-phone-link:hover {
    color: var(--primary-dark);
    transform: translateX(2px);
}

.contact-phone-link i {
    color: var(--primary-color);
}

.contact-note {
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-color);
    line-height: 1.5;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-note i {
    color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-actions {
    display: flex;
    gap: var(--spacing-sm);
    width: 100%;
}

.contact-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.contact-actions .btn-success {
    background: var(--success-color);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.contact-actions .btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.contact-actions .btn-primary {
    background: var(--info-color);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.contact-actions .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

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

/* Note Card - Modern Design */
.note-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--gray-100);
}

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

.note-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.note-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.note-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.note-card:hover .note-image img {
    transform: scale(1.05);
}

.note-content {
    padding: var(--spacing-md);
}

.note-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 var(--spacing) 0;
    line-height: 1.4;
}

.note-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing);
    flex-wrap: wrap;
}

.note-meta .badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.note-meta .bg-info {
    background: var(--info-light);
    color: var(--info-color);
}

.note-meta .bg-success {
    background: var(--success-light);
    color: var(--success-color);
}

.note-date {
    color: var(--gray-600);
    font-size: var(--font-size-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.note-description {
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.empty-icon {
    font-size: 5rem;
    color: var(--gray-300);
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.empty-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing);
}

.empty-text {
    color: var(--gray-600);
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.empty-state .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Bottom Navigation - Modern Design */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 0;
    border-top: 1px solid var(--gray-100);
}

.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--gray-500);
    padding: var(--spacing-sm) 0;
    transition: all var(--transition);
    font-size: var(--font-size-xs);
    font-weight: 600;
    position: relative;
}

.bottom-nav .nav-item i {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    transition: all var(--transition);
}

.bottom-nav .nav-item span {
    transition: all var(--transition);
}

.bottom-nav .nav-item.active {
    color: var(--primary-color);
}

.bottom-nav .nav-item.active i {
    transform: translateY(-2px);
}

.bottom-nav .nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.bottom-nav .nav-item:active {
    transform: scale(0.95);
}

/* Menu Modal */
.menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: flex-end;
    backdrop-filter: blur(4px);
}

.menu-modal.active {
    display: flex;
    animation: fadeIn var(--transition-slow);
}

.menu-content {
    background: var(--white);
    width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: var(--spacing-lg);
    animation: slideUp var(--transition-slow);
    box-shadow: var(--shadow-2xl);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing);
    border-bottom: 2px solid var(--gray-100);
}

.menu-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.btn-close-menu {
    background: var(--gray-100);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    cursor: pointer;
    color: var(--gray-700);
    transition: all var(--transition);
}

.btn-close-menu:hover {
    background: var(--gray-200);
    transform: rotate(90deg);
}

.menu-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 600;
    transition: all var(--transition);
    position: relative;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: height var(--transition);
}

.menu-item:hover {
    background: var(--gray-50);
    padding-left: calc(var(--spacing-md) + var(--spacing-sm));
}

.menu-item:hover::before {
    height: 60%;
}

.menu-item i {
    font-size: var(--font-size-xl);
    margin-right: var(--spacing-md);
    width: 24px;
    color: var(--primary-color);
}

.menu-item.text-danger {
    color: var(--danger-color);
}

.menu-item.text-danger i {
    color: var(--danger-color);
}

.menu-divider {
    height: 1px;
    background: var(--gray-200);
    margin: var(--spacing-sm) 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing) var(--spacing-lg);
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    gap: var(--spacing-sm);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

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

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.badge.bg-primary {
    background: var(--primary-color);
    color: var(--white);
}

.badge.bg-warning {
    background: var(--warning-color);
    color: var(--white);
}

/* Notification Banner */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius);
    margin-bottom: var(--spacing-lg);
    border: 1px solid transparent;
}

.alert-info {
    background: var(--info-light);
    border-color: var(--info-color);
    color: var(--gray-900);
}

.alert .btn-close {
    background: transparent;
    border: none;
    opacity: 0.5;
    cursor: pointer;
}

/* Responsive */
@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pwa-content {
        max-width: 800px;
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pwa-content {
        max-width: 1200px;
    }
}

/* Loading States */
.pwa-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-2xl);
}

.pwa-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

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

/* Form Styles */
.form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: var(--spacing) var(--spacing-md);
    font-size: var(--font-size-base);
    transition: all var(--transition);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
    font-family: var(--font-sans);
    line-height: 1.5;
}

.form-label {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.form-label i {
    color: var(--primary-color);
}

.text-muted {
    color: var(--gray-500);
    font-size: var(--font-size-xs);
}

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.card-body {
    padding: var(--spacing-lg);
}

/* Upcoming Birthday Cards - Modern Enhanced Design */
.upcoming-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.section-header-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.section-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.upcoming-date-info {
    color: var(--gray-500);
    font-size: var(--font-size-xs);
    margin: 4px 0 0 0;
    display: flex;
    align-items: center;
}

.upcoming-badge {
    min-width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: var(--font-size-base);
    padding: 0 var(--spacing);
    box-shadow: var(--shadow-md);
}

.upcoming-birthday-card {
    background: #f0fb73;
    background: linear-gradient(135deg, #f0fb73 0%, #fdf5a6 50%, #f0fb73 100%);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 15px rgba(240, 251, 115, 0.4);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.upcoming-birthday-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.upcoming-birthday-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 30px rgba(240, 251, 115, 0.6);
}

.upcoming-birthday-card:hover::before {
    opacity: 1;
}

.upcoming-card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.upcoming-card-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.3;
    pointer-events: none;
}

.upcoming-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.upcoming-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    border: 3px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition);
}

.upcoming-birthday-card:hover .upcoming-avatar {
    transform: scale(1.1) rotate(5deg);
}

.upcoming-contact-info {
    flex: 1;
    min-width: 0;
}

.upcoming-contact-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 4px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upcoming-phone-link {
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all var(--transition);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
}

.upcoming-phone-link:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(2px);
}

.upcoming-details-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.upcoming-detail-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.upcoming-detail-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.upcoming-detail-item i {
    font-size: 1.25rem;
    color: var(--gray-700);
    flex-shrink: 0;
}

.upcoming-detail-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.detail-label {
    font-size: var(--font-size-xs);
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: var(--font-size-sm);
    color: var(--gray-900);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upcoming-note {
    background: rgba(255, 255, 255, 0.8);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) var(--spacing);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.upcoming-note i {
    color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.upcoming-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.upcoming-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.upcoming-btn i {
    font-size: var(--font-size-lg);
}

.upcoming-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.upcoming-btn:active {
    transform: translateY(-1px);
}

.upcoming-btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: var(--white);
}

.upcoming-btn-whatsapp:hover {
    background: linear-gradient(135deg, #20bd5a 0%, #0e6b63 100%);
}

.upcoming-btn-sms {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: var(--white);
}

.upcoming-btn-sms:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}


/* Day-specific color variations */
.upcoming-day-1 {
    background: linear-gradient(135deg, #f0fb73 0%, #e6f7a4 50%, #f0fb73 100%);
}

.upcoming-day-2 {
    background: linear-gradient(135deg, #f0fb73 0%, #fff4b8 50%, #f0fb73 100%);
}

.upcoming-day-3 {
    background: linear-gradient(135deg, #f0fb73 0%, #f5ffc9 50%, #f0fb73 100%);
}

/* Responsive adjustments for upcoming cards */
@media (max-width: 576px) {
    .upcoming-details-row {
        grid-template-columns: 1fr;
    }

    .upcoming-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .detail-value {
        font-size: 0.7rem;
    }
}

/* Utility Classes */
.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-2 {
    margin-bottom: var(--spacing-sm) !important;
}

.me-2 {
    margin-right: var(--spacing-sm) !important;
}

/* ==========================================
   Home Page Tabs
   ========================================== */

.home-tabs {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 16px;
    position: sticky;
    top: 60px;
    z-index: 10;
}

.home-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: transparent;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    user-select: none;
}

.home-tab,
.home-tab *  {
    color: #6b7280;
}

.home-tab:hover {
    background: #f9fafb;
}

.home-tab:hover,
.home-tab:hover * {
    color: #667eea;
}

.home-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.35);
}

.home-tab.active,
.home-tab.active * {
    color: #ffffff !important;
}

.home-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #ef4444;
    color: #ffffff !important;
    line-height: 1;
}

.home-tab.active .home-tab-badge {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

.home-tab-badge.upcoming {
    background: #f59e0b;
    color: #111827 !important;
}

.home-tab.active .home-tab-badge.upcoming {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

/* Tab Content */
.home-tab-content {
    display: none;
    animation: tabFadeIn 0.3s ease;
}

.home-tab-content.active {
    display: block;
}

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

.me-3 {
    margin-right: var(--spacing) !important;
}

.mt-4 {
    margin-top: var(--spacing-xl) !important;
}

.small {
    font-size: var(--font-size-sm) !important;
}

.fs-4 {
    font-size: var(--font-size-xl) !important;
}
