/* Modern & Premium Design System for Kanda Connect */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1e3a8a;       /* Deep Navy Blue */
    --primary-light: #3b82f6; /* Modern Blue */
    --primary-glow: rgba(59, 130, 246, 0.15);
    --secondary: #0d9488;     /* Warm Teal */
    --secondary-light: #14b8a6;
    --accent: #f59e0b;        /* Amber Gold */
    --background: #f8fafc;    /* Clean off-white background */
    --card-bg: #ffffff;
    --text-main: #0f172a;     /* Dark Slate */
    --text-muted: #64748b;    /* Medium Slate */
    --border: #e2e8f0;        /* Light Grey Border */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* RSVP Colors */
    --rsvp-yes: #22c55e;
    --rsvp-no: #ef4444;
    --rsvp-maybe: #f59e0b;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.home-grid > * {
    min-width: 0;
}


a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button, input, textarea, select {
    font-family: inherit;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Premium Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 15px;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.3);
    color: white;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
}

/* Core Pages Layout */
.main-content {
    padding: 40px 0 80px;
    animation: fadeIn 0.5s ease-out;
}

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

/* Alerts */
.messages {
    margin-bottom: 24px;
    list-style: none;
}

.alert {
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-color: #fef3c7;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #0d9488 100%);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.welcome-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fbbf24;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.welcome-text {
    position: relative;
    z-index: 1;
}

.welcome-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.welcome-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    margin: 0;
}

/* Home Page Specifics */
.home-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 30px;
}

/* Cards & Glassmorphism */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title svg {
    color: var(--secondary);
}

/* Hero Meeting Banner */
.hero-card {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-tag {
    background: rgba(20, 184, 166, 0.2);
    color: var(--secondary-light);
    border: 1px solid rgba(20, 184, 166, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-host {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.meta-item svg {
    color: var(--secondary-light);
    flex-shrink: 0;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

/* Forms styling */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--background);
    color: var(--text-main);
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    background-color: white;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* RSVP Buttons inside Homepage Form */
.rsvp-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.rsvp-option {
    position: relative;
}

.rsvp-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rsvp-btn-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    background-color: white;
}

.rsvp-btn-label svg {
    margin-bottom: 6px;
    font-size: 20px;
}

/* RSVP Interactive Hover / Selected states */
.rsvp-option input[type="radio"]:checked + .rsvp-btn-label.nitakuja,
.rsvp-btn-label.nitakuja:hover {
    border-color: var(--rsvp-yes);
    color: var(--rsvp-yes);
    background-color: rgba(34, 197, 94, 0.05);
}

.rsvp-option input[type="radio"]:checked + .rsvp-btn-label.sitafanikiwa,
.rsvp-btn-label.sitafanikiwa:hover {
    border-color: var(--rsvp-no);
    color: var(--rsvp-no);
    background-color: rgba(239, 68, 68, 0.05);
}

.rsvp-option input[type="radio"]:checked + .rsvp-btn-label.usafiri,
.rsvp-btn-label.usafiri:hover {
    border-color: var(--rsvp-maybe);
    color: var(--rsvp-maybe);
    background-color: rgba(245, 158, 11, 0.05);
}

.rsvp-option input[type="radio"]:checked + .rsvp-btn-label {
    transform: scale(1.02);
    box-shadow: var(--shadow-sm);
}

/* Leader Dashboard Styling */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.blue {
    background-color: rgba(30, 58, 138, 0.08);
    color: var(--primary);
}

.stat-icon.green {
    background-color: rgba(34, 197, 94, 0.08);
    color: var(--rsvp-yes);
}

.stat-icon.red {
    background-color: rgba(239, 68, 68, 0.08);
    color: var(--rsvp-no);
}

.stat-icon.orange {
    background-color: rgba(245, 158, 11, 0.08);
    color: var(--rsvp-maybe);
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
}

.stat-name {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Dashboard Action list */
.dashboard-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

/* Dashboard table wrapper */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
}

.dashboard-table th {
    background-color: var(--background);
    padding: 14px 18px;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
}

.dashboard-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

.dashboard-table tr:hover {
    background-color: rgba(248, 250, 252, 0.5);
}

.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.badge-status-yes {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-status-no {
    background-color: #fee2e2;
    color: #b91c1c;
}

.badge-status-transport {
    background-color: #fef3c7;
    color: #b45309;
}

/* Follow up alerts */
.followup-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.followup-item {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.followup-text {
    font-size: 14px;
    font-weight: 500;
    color: #92400e;
}

.followup-actions {
    display: flex;
    gap: 10px;
}

.btn-sm-whatsapp {
    background-color: #25d366;
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-sm-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-1px);
}

/* Submit buttons */
.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Responsive media queries */
@media (max-width: 900px) {
    .home-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px 0 60px;
    }
    
    .welcome-banner {
        padding: 28px 24px;
        gap: 16px;
        margin-bottom: 20px;
    }
    
    .welcome-icon {
        width: 52px;
        height: 52px;
    }
    
    .welcome-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .welcome-title {
        font-size: 22px;
    }
    
    .welcome-subtitle {
        font-size: 13.5px;
    }
    
    .card {
        padding: 18px;
        margin-bottom: 16px;
    }
    
    .stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 12px;
        gap: 10px;
    }
    
    .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .dashboard-actions {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .dashboard-actions .btn-primary,
    .dashboard-actions .btn-secondary,
    .dashboard-actions form,
    .dashboard-actions button {
        width: 100% !important;
        justify-content: center;
    }
    
    .followup-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .followup-actions {
        width: 100%;
    }
    
    .btn-sm-whatsapp {
        width: 100%;
        justify-content: center;
        padding: 8px;
    }
}

@media (max-width: 600px) {
    .navbar {
        height: 64px;
    }
    
    .welcome-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 12px;
    }
    
    .welcome-icon {
        width: 48px;
        height: 48px;
    }
    
    .welcome-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .welcome-title {
        font-size: 20px;
    }
    
    .welcome-subtitle {
        font-size: 13px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        gap: 16px;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .hero-card {
        padding: 24px;
    }
    
    .hero-host {
        font-size: 24px;
    }
    
    .rsvp-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .welcome-banner {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }
    
    .welcome-title {
        font-size: 18px;
    }
    
    .welcome-subtitle {
        font-size: 12px;
    }
    
    .welcome-icon {
        width: 42px;
        height: 42px;
    }
    
    .welcome-icon svg {
        width: 20px;
        height: 20px;
    }
}

