﻿.profile-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: #6c757d;
    gap: 12px;
}

.profile-header-card {
    background: linear-gradient(135deg, green 0%, mediumseagreen 100%);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 74, 173, 0.3);
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.6);
}

.avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.85);
}

.profile-header-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.profile-username {
    font-size: 1rem;
    margin: 0;
    color: rgba(255,255,255,0.8);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

    .status-badge i {
        font-size: 0.5rem;
    }

.status-active {
    background: rgba(255,255,255,0.2);
    color: #d4edda;
    border: 1px solid rgba(255,255,255,0.3);
}

    .status-active i {
        color: #6fcf97;
    }

.status-inactive {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
}

.profile-card .status-active {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #a5d6a7;
}

    .profile-card .status-active i {
        color: #43a047;
    }

.profile-card .status-inactive {
    background: #fce4ec;
    color: #b71c1c;
    border-color: #f48fb1;
}

    .profile-card .status-inactive i {
        color: #e53935;
    }

.profile-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .profile-details-grid {
        grid-template-columns: 1fr;
    }
}

.profile-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.card-header-bar {
    background: green;
    color: white;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body-content {
    padding: 8px 0;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    padding: 10px 20px;
    border-bottom: 1px solid #f1f3f5;
    gap: 12px;
}

    .detail-row:last-child {
        border-bottom: none;
    }

.detail-label {
    min-width: 130px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 7px;
    padding-top: 2px;
}

    .detail-label i {
        color: green;
        width: 14px;
        text-align: center;
        font-size: 0.85rem;
    }

.detail-value {
    flex: 1;
    font-size: 0.9rem;
    color: #343a40;
    word-break: break-word;
}

    .detail-value a {
        color: green;
        text-decoration: none;
    }

        .detail-value a:hover {
            text-decoration: underline;
        }

.text-muted {
    color: #adb5bd;
    font-style: italic;
    font-size: 0.85rem;
}

.profile-actions {
    display: flex;
    gap: 12px;
}

.btn-back {
    background: white;
    color: green;
    border: 2px solid green;
    padding: 9px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

    .btn-back:hover {
        background: green;
        color: white;
    }
