﻿
:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ed8936;
    --info-color: #4299e1;
    --primary-green: #177e3f;
}

body {
    background-color: #f5f7fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.profile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

/* Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
}

    .page-title i {
        color: var(--primary-color);
    }

.btn-back {
    background: #2d3748;
    color: white;
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 14px;
}

    .btn-back:hover {
        background: #1a202c;
        transform: translateY(-2px);
    }

/* Profile Card - Left Side */
.profile-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    height: 100%;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 4px solid #f0f0f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 42px;
    font-weight: 600;
    overflow: hidden;
}

    .profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
}

.profile-type {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.profile-location {
    color: #718096;
    font-size: 14px;
    margin-bottom: 15px;
}

    .profile-location i {
        color: var(--danger-color);
    }

.profile-divider {
    border-top: 2px solid #f7fafc;
    margin: 20px 0;
}

.profile-detail-item {
    text-align: left;
    padding: 10px 0;
    border-bottom: 1px solid #f7fafc;
}

    .profile-detail-item:last-child {
        border-bottom: none;
    }

.detail-label-small {
    font-size: 11px;
    color: #a0aec0;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.detail-value-small {
    font-size: 14px;
    color: #2d3748;
    font-weight: 600;
    word-break: break-word;
}

/* Business Details - Right Side */
.business-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f7fafc;
}

.section-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.icon-blue {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.icon-green {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.icon-orange {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.icon-purple {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.detail-item {
    background: #f7fafc;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #e2e8f0;
}

.detail-label {
    font-size: 11px;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 14px;
    color: #2d3748;
    font-weight: 600;
    word-break: break-word;
}

    .detail-value.code {
        font-family: 'Courier New', monospace;
        letter-spacing: 0.5px;
    }

/* Documents Grid */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.doc-item {
    position: relative;
    text-align: center;
}

.doc-img-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #f7fafc;
}

.doc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.doc-img-wrapper:hover .doc-img {
    transform: scale(1.05);
}

.doc-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.doc-img-wrapper:hover .doc-actions {
    opacity: 1;
}

.doc-btn {
    background: white;
    color: #2d3748;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 16px;
}

    .doc-btn:hover {
        transform: scale(1.15);
        background: var(--primary-color);
        color: white;
    }

.doc-label {
    font-size: 12px;
    color: #718096;
    margin-top: 8px;
    font-weight: 600;
}

/* Responsive */
@@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .doc-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .doc-img-wrapper {
        height: 120px;
    }
}

.card-header-custom {
    background: linear-gradient(135deg, var(--primary-green) 0%, #1a9d4f 100%);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 10px;
}

    .card-header-custom h2 {
        margin: 0;
        font-weight: 700;
        font-size: 3rem !important;
    }

    .card-header-custom p {
        margin: 0.25rem 0 0 0;
        opacity: 0.95;
        font-size: 0.85rem;
    }
