/* css/guardians.css */
body {
    background-color: #f0f9ff;
    color: #1e293b;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

.app-wrapper {
    padding: 25px 20px;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 110px;
}

.top-bar {
    margin-bottom: 25px;
}

.top-bar h2 {
    font-size: 1.6rem;
    color: #1e293b;
    margin: 0;
}

.greeting {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Add Guardian Card */
.add-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    margin-bottom: 30px;
}

.add-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #1e293b;
    font-weight: 700;
}

.input-field {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.input-field i {
    margin-right: 12px;
    color: #2563eb;
}

.input-field input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 1rem;
    color: #1e293b;
}

.btn-primary {
    background: #2563eb;
    color: white;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* List Section */
.section-title {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-item {
    background: white;
    padding: 18px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.contact-info h4 {
    margin: 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.contact-info p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.delete-btn {
    background: #fee2e2;
    color: #ef4444;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

.delete-btn:hover {
    background: #fecaca;
}

.empty-state {
    text-align: center;
    color: #94a3b8;
    padding: 40px 0;
    font-style: italic;
}

/* Desktop View */
@media (min-width: 768px) {
    body {
        background-color: #e2e8f0;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }

    .app-wrapper {
        background: #f0f9ff;
        max-width: 900px;
        width: 100%;
        height: 85vh;
        border-radius: 25px;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .bottom-nav {
        max-width: 450px;
        bottom: 30px;
    }
}

/* --- NEW GUARDIAN CARD UI --- */
.guardian-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 100%;
    /* Taaki poora space le */
    box-sizing: border-box;
}

.guardian-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.guardian-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guardian-info h4 {
    margin: 0;
    font-size: 1.15rem;
    color: #1e293b;
    font-weight: 700;
}

.guardian-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delete-guardian-btn {
    background-color: #fee2e2;
    color: #ef4444;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.delete-guardian-btn:hover {
    background-color: #ef4444;
    color: #ffffff;
}

/* Empty State Styling */
.empty-guardians {
    text-align: center;
    padding: 30px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    color: #64748b;
}