/* AGENT TABS SYSTEM */

/* AGENT INFO BAR */
.agent-info-bar {
    background: linear-gradient(135deg, #F26522 0%, #D4541E 100%);
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.3);
}

.agent-basic-info {
    display: flex;
    gap: 40px;
    align-items: center;
}

.agent-basic-info .info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agent-basic-info .info-item label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.agent-basic-info .info-item .value {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.agent-info-bar .logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-info-bar .logout-btn:hover {
    background: white;
    color: #F26522;
}

/* TABS SYSTEM */
.tabs-container {
    background: #ffffff;
    border-bottom: 2px solid #e8e8e8;
    padding: 0 40px;
}

.tabs-nav {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tab-item {
    padding: 18px 30px;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-item:hover {
    color: #F26522;
    background: rgba(242, 101, 34, 0.05);
}

.tab-item.active {
    color: #F26522;
    border-bottom-color: #F26522;
    background: rgba(242, 101, 34, 0.08);
}

.tab-content {
    display: none;
    padding: 30px 40px;
    background: #f8fafc;
    min-height: calc(100vh - 200px);
}

.tab-content.active {
    display: block;
}

/* PROFILE TAB STYLES */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.profile-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.profile-card h4 {
    color: #F26522;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-field {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.profile-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-field label {
    display: block;
    color: #F26522;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-field .value {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 500;
}

.document-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid #e8e8e8;
}

.document-preview:hover {
    transform: scale(1.05);
}

.signature-preview {
    width: 200px;
    height: 100px;
    border: 2px dashed #e8e8e8;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.signature-preview img {
    max-width: 100%;
    max-height: 100%;
}

.btn-download-contract {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #F26522 0%, #D4541E 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-download-contract:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 101, 34, 0.4);
}

/* COMMISSION TAB STYLES */
.commission-header {
    background: linear-gradient(135deg, #F26522 0%, #D4541E 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.commission-rate {
    font-size: 32px;
    font-weight: 700;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.payments-table thead {
    background: linear-gradient(135deg, #F26522 0%, #D4541E 100%);
}

.payments-table th {
    padding: 15px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.payments-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.payments-table tbody tr:hover {
    background: rgba(242, 101, 34, 0.05);
}

.payments-table td {
    padding: 15px;
    color: #2c3e50;
    font-size: 14px;
}

.btn-view-commission-details {
    padding: 8px 16px;
    background: linear-gradient(135deg, #F26522 0%, #D4541E 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-commission-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.4);
}

/* IMAGE VIEWER MODAL */
.image-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.image-viewer-modal.active {
    display: flex;
}

.image-viewer-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.image-viewer-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.btn-close-viewer {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-viewer:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .agent-info-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .agent-basic-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-content {
        padding: 20px;
    }
}
