/*
 * Compact Modern Profile Header CSS - Part 1
 * Side by Side Layout - Metronic 4 Compatible
 * All classes prefixed with omr- to avoid conflicts
 */

/* ========================================
   COMPACT PROFILE HEADER - MAIN CONTAINER
======================================== */

.omr-compact-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #fafcff 100%);
    border: 1px solid #e8ecf4;
    border-radius: 8px;
    padding: 30px !important;
    margin: 0 -20px 20px -20px;
    box-shadow:
            0 1px 3px rgba(0, 0, 0, 0.05),
            0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.omr-compact-profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #36c6d3 0%, #2fb3c0 100%);
    border-radius: 8px 8px 0 0;
}

.omr-compact-profile-header:hover {
    box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.08),
            0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   LEFT SIDE - PROFILE PHOTO
======================================== */

.omr-profile-photo-side {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.omr-photo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.omr-photo-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
    border: 2px solid #ffffff;
    box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.12),
            0 0 0 1px rgba(54, 198, 211, 0.1);
    transition: all 0.3s ease;
}

.omr-photo-link:hover {
    box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.16),
            0 0 0 2px rgba(54, 198, 211, 0.3);
    transform: scale(1.02);
}

.omr-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.omr-photo-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(54, 198, 211, 0.85), rgba(47, 179, 192, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.omr-photo-link:hover .omr-photo-hover {
    opacity: 1;
}

.omr-photo-hover i {
    color: #ffffff;
    font-size: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Photo Placeholder */
.omr-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.omr-photo-placeholder:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    border-color: #36c6d3;
    border-style: solid;
}

.omr-photo-placeholder a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
}

.omr-photo-placeholder:hover a {
    color: #36c6d3;
}

/* Status Dot */
.omr-status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.omr-dot-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
/*
 * Compact Modern Profile Header CSS - Part 2
 * Information Section & Actions - Metronic 4 Compatible
 */

/* ========================================
   RIGHT SIDE - PROFILE INFORMATION
======================================== */

.omr-profile-info-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0; /* Prevent flex item from overflowing */
}

/* Header Row - Name and Status */
.omr-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.omr-profile-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.omr-profile-title a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    border-radius: 3px;
    padding: 1px 2px;
}

.omr-profile-title a:hover {
    color: #36c6d3;
    border-bottom-color: #36c6d3;
    background: rgba(54, 198, 211, 0.05);
}

/* Status Chip */
.omr-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.omr-chip-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
}

.omr-chip-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #34d399;
}

.omr-status-chip i {
    font-size: 10px;
}

/* Info Grid */
.omr-info-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.omr-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    line-height: 1.2;
}

.omr-info-company {
    grid-column: 1 / -1; /* Full width for company info */
}

.omr-info-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #64748b;
    flex-shrink: 0;
}

.omr-info-text {
    color: #334155;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.omr-info-text strong {
    color: #1e293b;
    font-weight: 600;
}

/* Compact Actions */
.omr-compact-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.omr-compact-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    background: none;
}

.omr-btn-edit {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border-color: #f59e0b;
}

.omr-btn-edit:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.omr-btn-details {
    background: #ffffff;
    color: #64748b;
    border-color: #e2e8f0;
}

.omr-btn-details:hover {
    background: #f8fafc;
    color: #36c6d3;
    border-color: #36c6d3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(54, 198, 211, 0.2);
}

.omr-compact-btn i {
    font-size: 11px;
}
/*
 * Compact Modern Profile Header CSS - Part 3
 * Responsive Design & Accessibility - Metronic 4 Compatible
 */

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

@media (max-width: 767px) {
    .omr-compact-profile-header {
        margin: 0 -15px 16px -15px;
        padding: 12px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .omr-profile-photo-side {
        width: 64px;
        height: 64px;
    }

    .omr-profile-info-side {
        width: 100%;
        align-items: center;
    }

    .omr-header-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .omr-profile-title {
        font-size: 14px;
        text-align: center;
    }

    .omr-info-grid {
        align-items: center;
        gap: 4px;
    }

    .omr-compact-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .omr-compact-btn {
        font-size: 11px;
        padding: 5px 8px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .omr-profile-photo-side {
        width: 72px;
        height: 72px;
    }

    .omr-profile-title {
        font-size: 15px;
    }

    .omr-info-item {
        font-size: 12px;
    }
}

/* ========================================
   FORM CARDS COMPATIBILITY
======================================== */

.omr-form-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
    height: 500px;
    background: #ffffff;
    border: 1px solid #e8ecf4;
    border-radius: 8px;
    box-shadow:
            0 1px 3px rgba(0, 0, 0, 0.05),
            0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.omr-form-card:hover {
    box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.08),
            0 12px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #36c6d3;
}

.omr-form-card .portlet-body {
    padding: 0;
    height: 100%;
    background: transparent;
}

.omr-scrollable-body {
    height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 !important;
    background: transparent;
}

/* Custom Scrollbar */
.omr-scrollable-body::-webkit-scrollbar {
    width: 6px;
}

.omr-scrollable-body::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 3px;
}

.omr-scrollable-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #36c6d3 0%, #2fb3c0 100%);
    border-radius: 3px;
}

.omr-scrollable-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2fb3c0 0%, #26a0ac 100%);
}

.omr-scrollable-body {
    scrollbar-width: thin;
    scrollbar-color: #36c6d3 #f8fafc;
}

/* ========================================
   ANIMATIONS & EFFECTS
======================================== */

/* Focus States */
.omr-compact-btn:focus,
.omr-photo-link:focus {
    outline: 2px solid #36c6d3;
    outline-offset: 2px;
}

/* Status Chip Animation */
.omr-status-chip {
    animation: chipFadeIn 0.5s ease-in-out;
}

@keyframes chipFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Card Entry Animation */
.omr-form-item {
    animation: slideInUp 0.4s ease-out;
}

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

/* Loading State */
.omr-compact-profile-header.loading {
    opacity: 0.7;
    pointer-events: none;
}

.omr-compact-profile-header.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #36c6d3;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   ACCESSIBILITY FEATURES
======================================== */

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .omr-compact-profile-header,
    .omr-photo-link {
        border: 2px solid #000000;
    }

    .omr-compact-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .omr-compact-profile-header,
    .omr-photo-link,
    .omr-compact-btn {
        transition: none;
    }

    .omr-compact-profile-header:hover,
    .omr-photo-link:hover {
        transform: none;
    }

    .omr-form-item {
        animation: none;
    }

    .omr-status-chip {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .omr-compact-actions,
    .omr-photo-hover {
        display: none !important;
    }

    .omr-compact-profile-header {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        transform: none !important;
    }
}