/* ===================================
   Custom Admin Show Pages Styling
   =================================== */

/* Show Page Container */
.show-page-container {
    background: #f8f9fc;
    min-height: 100vh;
    padding: 2rem 0;
}

/* Profile Header Card */
.profile-header-card {
    background: linear-gradient(135deg, #667eea 0%, #26316d 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.profile-header-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

/* Profile Header Content */
.profile-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.profile-info-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar i {
    font-size: 48px;
    color: #fff;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.profile-name {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.profile-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

/* Profile Status Badges */
.profile-status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.profile-status-badges .badge {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.profile-status-badges .badge-success {
    background: rgba(72, 187, 120, 0.8);
    border-color: rgba(72, 187, 120, 0.5);
}

.profile-status-badges .badge-warning {
    background: rgba(237, 137, 54, 0.8);
    border-color: rgba(237, 137, 54, 0.5);
}

.profile-status-badges .badge-danger {
    background: rgba(245, 101, 101, 0.8);
    border-color: rgba(245, 101, 101, 0.5);
}

.profile-status-badges .badge-lg {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
}

/* Info Cards */
.info-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.info-card-header {
    background: linear-gradient(135deg, #f8f9fc 0%, #e9ecef 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.info-card-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-card-title i {
    color: #667eea;
    font-size: 1.3rem;
}

.info-card-body {
    padding: 0;
}

/* Info Table Styling */
.info-table {
    width: 100%;
    margin: 0;
}

.info-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.info-table tbody tr:last-child {
    border-bottom: none;
}

.info-table tbody tr:hover {
    background: #f8f9fc;
}

.info-table tbody th {
    background: #fafbfc;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1.25rem 1.5rem;
    width: 200px;
    border-right: 3px solid #e2e8f0;
    vertical-align: middle;
}

.info-table tbody td {
    padding: 1.25rem 1.5rem;
    color: #2d3748;
    font-size: 0.95rem;
    vertical-align: middle;
}

/* RTL Support */
[dir="rtl"] .info-table tbody th {
    border-right: none;
    border-left: 3px solid #e2e8f0;
}

/* Badge Styles in Show Pages */
.badge-xl {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 25px;
    font-weight: 600;
}

.badge-success-soft {
    background: #d4edda;
    color: #155724;
}

.badge-danger-soft {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning-soft {
    background: #fff3cd;
    color: #856404;
}

.badge-info-soft {
    background: #d1ecf1;
    color: #0c5460;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.image-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.image-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.image-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-gallery-item:hover .image-zoom-overlay {
    opacity: 1;
}

.image-zoom-overlay i {
    color: #fff;
    font-size: 2rem;
}

/* Map Container */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Action Footer */
.action-footer {
    background: #f8f9fc;
    padding: 1.25rem 1.5rem;
    border-top: 2px solid #e2e8f0;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Stats Cards */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
}

.stat-icon.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.stat-icon.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #fff;
}

.stat-icon.danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: #fff;
}

.stat-icon.warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: #fff;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

[dir="rtl"] .timeline::before {
    left: auto;
    right: 30px;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: 2rem;
}

[dir="rtl"] .timeline-item {
    padding-left: 0;
    padding-right: 60px;
}

.timeline-icon {
    position: absolute;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 3px solid #667eea;
    color: #667eea;
    font-size: 1.2rem;
    z-index: 1;
}

[dir="rtl"] .timeline-icon {
    left: auto;
    right: 20px;
}

.timeline-content {
    background: #fff;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.timeline-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.timeline-text {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.timeline-date {
    color: #a0aec0;
    font-size: 0.85rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #a0aec0;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

.empty-state-text {
    font-size: 1.1rem;
    color: #718096;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-header-card {
        padding: 1.5rem;
    }
    
    .profile-header-content {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-info-wrapper {
        width: 100%;
    }
    
    .profile-info {
        align-items: center;
    }
    
    .profile-status-badges {
        justify-content: center;
    }
    
    .profile-avatar {
        width: 90px;
        height: 90px;
    }
    
    .profile-avatar-large {
        width: 90px;
        height: 90px;
    }
    
    .profile-name {
        font-size: 1.4rem;
    }
    
    .info-table tbody th {
        width: 140px;
        font-size: 0.85rem;
        padding: 1rem;
    }
    
    .info-table tbody td {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .action-footer {
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .action-footer,
    .profile-header-card::before,
    .profile-header-card::after {
        display: none;
    }
    
    .info-card {
        box-shadow: none;
        border: 1px solid #e2e8f0;
        break-inside: avoid;
    }
}
