/* ===========================================
   USER SHOW PAGE STYLES
   Professional admin user details page
   Envato-compliant CSS with validation and best practices
   =========================================== */

/* Timeline Styles */
.user-show .timeline {
    position: relative;
    padding-left: 30px;
}

.user-show .timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e9ecef;
}

.user-show .timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.user-show .timeline-marker {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #e9ecef;
}

.user-show .timeline-marker.bg-primary {
    background-color: #007bff;
    box-shadow: 0 0 0 2px #007bff;
}

.user-show .timeline-marker.bg-success {
    background-color: #28a745;
    box-shadow: 0 0 0 2px #28a745;
}

.user-show .timeline-marker.bg-info {
    background-color: #17a2b8;
    box-shadow: 0 0 0 2px #17a2b8;
}

.user-show .timeline-marker.bg-warning {
    background-color: #ffc107;
    box-shadow: 0 0 0 2px #ffc107;
}

.user-show .timeline-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #007bff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.user-show .timeline-content:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.user-show .timeline-title {
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.user-show .timeline-text {
    margin-bottom: 0;
    font-size: 0.9em;
    color: #6c757d;
}

/* Stats Card Styles */
.user-show .stats-card {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-show .stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #28a745, #17a2b8, #ffc107);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-show .stats-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.user-show .stats-card:hover::before {
    opacity: 1;
}

.user-show .stats-card h3,
.user-show .stats-card h4 {
    margin-bottom: 5px;
    font-weight: 700;
}

.user-show .stats-card p {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #6c757d;
}

/* User Avatar Styles */
.user-show .user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007bff, #28a745);
    border-radius: 50%;
    color: #ffffff;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.user-show .user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

/* Card Header Enhancements */
.user-show .card-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.user-show .card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

/* Badge Enhancements */
.user-show .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Button Enhancements */
.user-show .btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-show .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.user-show .btn:hover::before {
    left: 100%;
}

/* Form Label Enhancements */
.user-show .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-show .form-label i {
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .user-show .timeline {
        padding-left: 20px;
    }
    
    .user-show .timeline::before {
        left: 10px;
    }
    
    .user-show .timeline-marker {
        left: -25px;
        width: 8px;
        height: 8px;
    }
    
    .user-show .timeline-content {
        padding: 12px;
    }
    
    .user-show .stats-card {
        padding: 12px;
        margin-bottom: 1rem;
    }
    
    .user-show .user-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .user-show .timeline {
        padding-left: 15px;
    }
    
    .user-show .timeline::before {
        left: 7px;
    }
    
    .user-show .timeline-marker {
        left: -20px;
        width: 6px;
        height: 6px;
    }
    
    .user-show .timeline-content {
        padding: 10px;
        font-size: 0.875rem;
    }
    
    .user-show .stats-card {
        padding: 10px;
    }
    
    .user-show .user-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .user-show .timeline-content {
        background: #2d3748;
        border-left-color: #4299e1;
        color: #e2e8f0;
    }
    
    .user-show .timeline-title {
        color: #f7fafc;
    }
    
    .user-show .timeline-text {
        color: #a0aec0;
    }
    
    .user-show .stats-card {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .user-show .form-label {
        color: #f7fafc;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .user-show .timeline-content {
        border: 2px solid #000000;
        background: #ffffff;
        color: #000000;
    }
    
    .user-show .stats-card {
        border: 2px solid #000000;
        background: #ffffff;
        color: #000000;
    }
    
    .user-show .timeline-marker {
        border-color: #000000;
        box-shadow: 0 0 0 2px #000000;
    }
}

/* Print Styles */
@media print {
    .user-show .btn,
    .user-show .card-header {
        display: none !important;
    }
    
    .user-show .timeline-content,
    .user-show .stats-card {
        border: 1px solid #000000;
        background: #ffffff !important;
        color: #000000 !important;
        box-shadow: none !important;
    }
    
    .user-show .timeline-marker {
        background-color: #000000 !important;
        border-color: #000000 !important;
        box-shadow: none !important;
    }
}
