/* Carrier Profile Modal Styles */

.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    position: relative;
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 0;
    max-height: calc(90vh - 60px);
    overflow-y: auto;
}

/* Profile Styles */
.carrier-profile {
    padding: 2rem;
}

.profile-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 1.5rem;
}

.profile-header h2 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 2rem;
}

.profile-header .dba {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.status-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Tabs */
.profile-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #333;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #0284c7;
    border-bottom-color: #0284c7;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.info-item span {
    color: #2c3e50;
    font-size: 1rem;
}

.info-item a {
    color: #0284c7;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

/* Insurance Status */
.insurance-status {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.insurance-status.insured {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.insurance-status.uninsured {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.insurance-status .status-icon {
    font-size: 3rem;
}

.insurance-status.insured .status-icon {
    color: #28a745;
}

.insurance-status.uninsured .status-icon {
    color: #dc3545;
}

.insurance-status h4 {
    margin: 0 0 0.5rem 0;
}

.insurance-status .amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #155724;
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-card i {
    font-size: 2rem;
    color: #0284c7;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Officer Cards */
.officer-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.officer-card h4 {
    margin: 0 0 1rem 0;
    color: #495057;
}

/* Compliance Actions */
.compliance-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e5e5;
}

.compliance-actions h4 {
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #0284c7;
    color: white;
}

.btn-primary:hover {
    background: #0369a1;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Utility Classes */
.text-success {
    color: #28a745;
}

.text-warning {
    color: #ffc107;
}

.text-danger {
    color: #dc3545;
}

.text-muted {
    color: #6c757d;
}

.text-center {
    text-align: center;
}

.font-mono {
    font-family: 'Courier New', monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .carrier-profile {
        padding: 1rem;
    }
    
    .profile-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        width: 100%;
    }
}