/* Hub Portal Unified Styles */
/* Merged from C3PAO and Referral Portal designs */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Eurostile:wght@400&display=swap');

/*
ATX Defense Brand Identity:
- Background: #323232 (Dark Gray)
- Primary/Button Color: #D15E14 (Orange)
- Headlines (h1, h2, h3, h4): Eurostile Regular (font-weight: 400)
- Body text: Open Sans Regular (font-weight: 400)
- Labels, buttons, emphasis: Open Sans SemiBold (font-weight: 600)
- Strong emphasis: Open Sans Bold (font-weight: 700)
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400; /* Open Sans Regular */
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: #323232;
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: grid;
    grid-template-columns: 120px 1fr 120px; /* Logo width, center content, balance width */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.logo-section {
    grid-column: 1;
}

.company-logo {
    height: 50px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    border-radius: 4px;
}

/* Fallback styling if logo is missing */
.company-logo:not([src]), .company-logo[src=""] {
    display: none;
}

.title-section {
    grid-column: 2;
    text-align: center;
}

.header h1 {
    font-family: 'Eurostile', 'Arial Black', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header h2 {
    font-family: 'Eurostile', 'Arial Black', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    opacity: 0.9;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: flex-start; /* Align children to the left for index page */
    align-items: flex-start;
}

/* Steps */
.step {
    display: none;
    width: 100%;
    max-width: 600px;
}

/* Landing page should use full width */
#landing-page {
    max-width: none;
    width: 100%;
}

.step.active {
    display: block;
}

/* Portal page specific styles */
.portal-page .main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portal-page .step {
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card h3 {
    font-family: 'Eurostile', 'Arial Black', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #2c3e50;
}

.card p {
    margin-bottom: 25px;
    color: #666;
    font-size: 1rem;
}

/* Form elements */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="password"],
textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #D15E14;
    box-shadow: 0 0 0 3px rgba(209, 94, 20, 0.1);
}

/* Select Dropdown Styles */
select {
    width: 100%;
    padding: 14px;
    padding-right: 40px; /* Space for custom arrow */
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* Remove default arrow in different browsers */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* Custom arrow using background image (SVG) */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

select:hover {
    border-color: #D15E14;
}

select:focus {
    outline: none;
    border-color: #D15E14;
    box-shadow: 0 0 0 3px rgba(209, 94, 20, 0.1);
}

/* Style for disabled select */
select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* File Upload Styles */
.file-upload-area {
    position: relative;
    border: 2px dashed #D15E14;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fef9f5;
}

.file-upload-area:hover {
    border-color: #B54A0F;
    background: #fef7f0;
}

.file-upload-area.dragover {
    border-color: #B54A0F;
    background: #fef7f0;
    transform: scale(1.02);
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-prompt {
    pointer-events: none;
}

.upload-icon {
    width: 48px;
    height: 48px;
    fill: #D15E14;
    margin-bottom: 15px;
}

.upload-prompt p {
    margin: 8px 0;
    color: #333;
    font-weight: 500;
}

.file-types {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Selected Files */
.selected-files {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #D15E14;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    width: 20px;
    height: 20px;
    fill: #D15E14;
}

.file-name {
    font-weight: 500;
    color: #333;
}

.file-size {
    font-size: 14px;
    color: #666;
}

.file-remove {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.file-remove:hover {
    background: #f8f9fa;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #D15E14;
    color: white;
}

.btn-primary:hover {
    background: #B54A0F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(209, 94, 20, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-logout {
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
}

.btn-logout:hover {
    background: #c82333;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
    font-weight: bold;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-loading {
    opacity: 1;
}

.btn-text,
.btn-loading {
    transition: opacity 0.3s ease;
}

.btn-loading {
    position: absolute;
    opacity: 0;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Tab Navigation */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e6ed;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #D15E14;
}

.tab-btn.active {
    color: #D15E14;
    border-bottom-color: #D15E14;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Landing Page Styles */
.landing-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Third card positioned under first card */
.landing-options .option-card:nth-child(3) {
    grid-column: 1;
    max-width: none;
    margin: 0;
}

.option-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.option-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #D15E14 0%, #B54A0F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.option-icon svg {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    flex-shrink: 0;
}

.option-card h3 {
    font-size: 24px;
    color: #323232;
    margin-bottom: 15px;
    font-weight: 600;
}

.option-card p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

/* Info Section */
.info-section {
    margin-bottom: 40px;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
    color: #323232;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 10px 0;
    color: #666;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 25px;
}

.info-card li:last-child {
    border-bottom: none;
}

.info-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #D15E14;
    font-weight: bold;
    font-size: 16px;
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.partner-info h2 {
    font-size: 24px;
    color: #323232;
    margin-bottom: 5px;
}

.partner-info p {
    color: #666;
    margin: 0;
}

.partner-id {
    font-family: monospace;
    font-size: 14px;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    gap: 10px;
}

.tab-navigation .tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.tab-navigation .tab-btn.active {
    background: #D15E14;
    color: white;
    box-shadow: 0 2px 8px rgba(209, 94, 20, 0.3);
}

.tab-navigation .tab-btn:hover:not(.active) {
    background: #f8f9fa;
    color: #333;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: linear-gradient(135deg, #D15E14 0%, #B54A0F 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(209, 94, 20, 0.2);
}

.summary-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 14px;
    opacity: 0.9;
}

/* List Styles */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.list-header h4 {
    color: #323232;
    font-size: 20px;
}

.list {
    display: grid;
    gap: 15px;
}

.list-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.list-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.list-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #323232;
    margin-bottom: 5px;
}

.list-item-meta {
    font-size: 14px;
    color: #666;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.registered {
    background: #fff3cd;
    color: #856404;
}

.status-badge.qualified {
    background: #d4edda;
    color: #155724;
}

.status-badge.in-progress {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.closed-won {
    background: #d4edda;
    color: #155724;
}

.status-badge.closed-lost {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

.list-item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.list-item-detail {
    text-align: center;
}

.list-item-detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.list-item-detail-value {
    font-weight: 600;
    color: #333;
}

.list-item-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}

/* Search Bar */
.search-bar {
    margin-bottom: 20px;
}

.search-bar input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-bar input[type="text"]:focus {
    outline: none;
    border-color: #D15E14;
    box-shadow: 0 0 0 3px rgba(209, 94, 20, 0.1);
}

/* Loading States */
.loading-message,
.no-files-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 1rem;
}

.no-files-message {
    background: #f8f9fa;
    border: 1px dashed #e0e6ed;
    border-radius: 8px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #D15E14;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8d7da;
    border-radius: 4px;
    border-left: 4px solid #dc3545;
    display: none;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.success-message {
    color: #27ae60;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #d4edda;
    border-radius: 4px;
    border-left: 4px solid #27ae60;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #28a745;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.modal-content h3 {
    color: #323232;
    margin-bottom: 15px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

/* Admin-specific styling */
.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.admin-email {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
}

.admin-link:hover {
    color: #495057;
    text-decoration: underline;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    text-align: center;
    color: #666;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.footer p {
    margin: 8px 0;
}

.footer a {
    color: #D15E14;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Load More Button */
#load-more-btn {
    display: block;
    margin: 20px auto;
    width: 200px;
}

/* Required field indicator */
.required {
    color: #e74c3c;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .logo-section {
        grid-column: 1;
        justify-self: center;
    }
    
    .title-section {
        grid-column: 1;
        text-align: center;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header h2 {
        font-size: 1.3rem;
    }
    
    .card {
        padding: 25px 20px;
    }
    
    .landing-options {
        grid-template-columns: 1fr;
        max-width: none;
    }
    
    .option-card {
        padding: 30px 20px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .list-item-details {
        grid-template-columns: 1fr;
    }
    
    .list-item-actions {
        flex-direction: column;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .title-section h1 {
        font-size: 24px;
    }
    
    .card h3 {
        font-size: 20px;
    }
    
    .file-upload-area {
        padding: 25px 15px;
    }
    
    .option-card {
        padding: 20px 15px;
    }
}

/* File Management Styles */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-width: auto;
}

.list {
    min-height: 200px;
}

.loading-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.no-files-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-data-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Search bar */
.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #D15E14;
    box-shadow: 0 0 0 3px rgba(209, 94, 20, 0.1);
}

/* File list items */
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: background-color 0.2s ease;
}

.file-item:hover {
    background: #e9ecef;
}

.file-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.file-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    fill: #D15E14;
}

.file-name {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 10px;
}

.file-size {
    color: #666;
    font-size: 0.9rem;
}

.file-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.file-remove:hover {
    background-color: #ffeaea;
}

/* Assessment Portal Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.admin-email {
    color: white;
    font-weight: 600;
    opacity: 0.9;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid #e0e6ed;
    margin-bottom: 30px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #D15E14;
    background-color: #fef5f0;
}

.tab-btn.active {
    color: #D15E14;
    border-bottom-color: #D15E14;
    background-color: #fef5f0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Assessment Form */
.required {
    color: #e74c3c;
}

.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #D15E14;
    box-shadow: 0 0 0 3px rgba(209, 94, 20, 0.1);
}

/* Assessment Result */
.assessment-result {
    background: #f8fff9;
    border: 1px solid #d4edda;
    border-radius: 8px;
    padding: 25px;
    margin-top: 25px;
}

.assessment-result h4 {
    color: #27ae60;
    margin-bottom: 20px;
    font-family: 'Eurostile', 'Arial Black', sans-serif;
    font-weight: 400;
}

.result-details {
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e9f7ef;
}

.result-item:last-child {
    border-bottom: none;
}

.upload-key {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #2c3e50;
}

.btn-copy {
    background: #D15E14;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.2s ease;
}

.btn-copy:hover {
    background: #b84f0f;
}

.result-note {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #2c3e50;
}

/* Assessment Cards */
.assessments-list {
    min-height: 200px;
}

.assessment-card {
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.assessment-card:hover {
    border-color: #D15E14;
    box-shadow: 0 4px 12px rgba(209, 94, 20, 0.1);
    transform: translateY(-2px);
}

.assessment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.assessment-header h4 {
    font-family: 'Eurostile', 'Arial Black', sans-serif;
    font-weight: 400;
    color: #2c3e50;
    margin: 0;
}

.assessment-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.assessment-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.assessment-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.assessment-detail strong {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.assessment-detail span,
.assessment-detail code {
    font-size: 0.95rem;
    color: #2c3e50;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Success/Error Messages */
.success-message {
    color: #27ae60;
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 8px 12px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    display: none;
}

.success-message.show {
    display: block;
}

/* Responsive Design for Assessment */
@media (max-width: 768px) {
    .admin-header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-left-color: #D15E14;
        border-bottom-color: transparent;
    }
    
    .assessment-body {
        grid-template-columns: 1fr;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Partner Portal Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Deal Cards */
.deals-list {
    min-height: 200px;
}

.deal-card {
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.deal-card:hover {
    border-color: #D15E14;
    box-shadow: 0 4px 12px rgba(209, 94, 20, 0.1);
    transform: translateY(-2px);
}

.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.deal-header h4 {
    font-family: 'Eurostile', 'Arial Black', sans-serif;
    font-weight: 400;
    color: #2c3e50;
    margin: 0;
}

.deal-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.deal-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.deal-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.deal-detail strong {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deal-detail span {
    font-size: 0.95rem;
    color: #2c3e50;
}

/* Status Badge Variants */
.status-badge.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e6ed;
}

.modal-header h3 {
    font-family: 'Eurostile', 'Arial Black', sans-serif;
    font-weight: 400;
    color: #2c3e50;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e6ed;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Partner page specific layout */
.portal-page .landing-options {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 20px;
}

.portal-page .info-section {
    margin-top: 20px;
}

.portal-page .info-card {
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Design for Partner */
@media (max-width: 768px) {
    .deal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px 20px;
    }
    
    /* Partner page mobile layout */
    .portal-page .landing-options {
        grid-template-columns: 1fr;
    }
}