/* ====================================
   PROFILE PAGE - STYLES
   ==================================== */

:root {
    --primary: #007bff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --light: #f8f9fa;
    --dark: #343a40;
    --border-radius: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* ====================================
   PROFILE AVATAR
   ==================================== */

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    margin-right: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* ====================================
   PROFILE CARDS
   ==================================== */

.profile-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.profile-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.profile-card h3 {
    font-size: 1.5rem;
    color: var(--dark);
    letter-spacing: -0.3px;
}

.profile-card h5 {
    font-size: 1.1rem;
    color: var(--dark);
    letter-spacing: -0.2px;
}

/* ====================================
   PROFILE FIELDS
   ==================================== */

.profile-field {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-field label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.profile-field p {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.profile-field small {
    font-size: 0.8rem;
}

/* ====================================
   ACTIVITY ITEMS
   ==================================== */

.activity-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.activity-item p:first-child {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ====================================
   SECURITY ITEMS
   ==================================== */

.security-item {
    padding: 0.5rem 0;
}

.security-item p {
    font-size: 0.95rem;
}

.security-item p.fw-bold {
    color: var(--dark);
}

.security-item p.text-muted {
    font-size: 0.9rem;
}

/* ====================================
   SIDEBAR STATS CARD
   ==================================== */

.profile-stats-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.1s;
}

.profile-stats-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.profile-stats-card h5 {
    font-size: 1.1rem;
    color: var(--dark);
}

.stat-item p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ====================================
   ACTION BUTTONS
   ==================================== */

.action-buttons {
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.2s;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-outline-danger {
    color: var(--danger);
    border: 2px solid var(--danger);
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* ====================================
   BADGES
   ==================================== */

.badge {
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    font-size: 0.8rem;
}

.badge-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.badge-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

/* ====================================
   MODALS
   ==================================== */

.modal-content {
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem;
}

.modal-header.bg-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #c82333 100%) !important;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1.5rem;
}

/* ====================================
   HEADER SECTION
   ==================================== */

.section-header h1 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1rem;
}

/* ====================================
   ANIMATIONS
   ==================================== */

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

.profile-card:nth-child(2) {
    animation-delay: 0.1s;
}

.profile-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 992px) {
    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
        margin-right: 1rem;
    }

    .section-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .section-header h1 {
        font-size: 1.75rem;
    }

    .profile-card {
        margin-bottom: 1.5rem;
    }

    .row {
        margin-bottom: 1rem;
    }

    .col-md-6 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding: 1rem;
    }

    .profile-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
        margin-right: 0.75rem;
    }

    .section-header h1 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .profile-card {
        padding: 1.5rem !important;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .btn-sm {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* ====================================
   UTILITY CLASSES
   ==================================== */

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

.rounded-3 {
    border-radius: var(--border-radius);
}

.shadow-sm {
    box-shadow: var(--shadow);
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
