/**
 * PedNet Profile Management - Modern Design
 */

/* ==========================================
   Profile Wrapper
   ========================================== */

.pednet-profile-wrapper {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* ==========================================
   Success/Error Messages
   ========================================== */

.pednet-success {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

.pednet-error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

/* ==========================================
   Profile Header
   ========================================== */

.profile-header {
    /*background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);*/
    background: white;
    color: rgba(108, 108, 108, 0.867);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar img {
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.avatar-fallback {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #f3f4f6;
}

.avatar-fallback span {
    color: white;
    font-size: 48px;
    font-weight: 700;
}

.profile-header-info h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.profile-header-info p {
    margin: 0.25rem 0;
    opacity: 0.9;
}

/* ==========================================
   Tabs Navigation
   ========================================== */

.profile-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.tab-btn svg {
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: #e9ecef;
}

.tab-btn.active {
    background: white;
    border-bottom: 3px solid var(--primary);
    color: var(--primary);
}

.tab-btn.active svg {
    transform: scale(1.1);
}

/* ==========================================
   Tab Content
   ========================================== */

.tab-content {
    padding: 2rem;
}

.tab-content:not(.active) {
    display: none;
}

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

/* ==========================================
   Profile Card
   ========================================== */



.profile-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
}

.profile-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px 0;
}

.tab-content h2 {
    font-size: var(--text-xl);
    margin: var(--space-s) 0;
}

/* ==========================================
   Form Styles
   ========================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    font-size: 1.6rem !important;
    transition: border-color 0.3s ease !important;
    box-sizing: border-box !important;
    background: white !important;
    color: #333 !important;
    outline: none !important;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: var(--text-s);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ==========================================
   Form Actions
   ========================================== */

.form-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.6rem !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================
   Danger Zone
   ========================================== */

.danger-zone {
    border: 2px solid #fee2e2;
    background: #fef2f2;
}

.danger-warning {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #ef4444;
    margin-bottom: 24px;
}

.danger-warning svg {
    color: #ef4444;
    flex-shrink: 0;
}

.danger-warning h3 {
    font-size: 16px;
    font-weight: 700;
    color: #991b1b;
    margin: 0 0 8px 0;
}

.danger-warning p {
    font-size: 14px;
    color: #7f1d1d;
    margin: 0;
    line-height: 1.6;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 768px) {
    .pednet-profile-wrapper {
        padding: 10px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .profile-header-info h1 {
        font-size: 24px;
    }

    .profile-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .tab-btn {
        width: 100%;
        justify-content: flex-start;
        border-bottom: 1px solid #f3f4f6;
        margin-bottom: 0;
    }

    .tab-btn.active {
        background: rgba(59, 130, 246, 0.1);
        border-bottom-color: var(--primary);
    }

    .profile-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .profile-avatar img {
        width: 80px;
        height: 80px;
    }

    .profile-header-info h1 {
        font-size: 20px;
    }
}
