/* License Portal Theme */

:root {
    --primary-navy: #052e44;
    --secondary-navy: #0b3558;
    --accent-gold: #ddb023;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --light-bg: #f5f8fa;
    --dropzone-bg: #f4f8fb;
    --dropzone-border: #b8d2eb;
    --dropzone-hover: #e6f0fa;
    --success-green: #2ecc71;
    --light-success: #eefcf4;
    --light-blue: #eef6fc;
}

body.license-portal-body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Header Styles */
.secure-header {
    background-color: var(--light-bg);
    border-bottom: 3px solid var(--accent-gold);
    padding: 15px 0;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.genie-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    line-height: 1.2;
}

.brand-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-icon-shield {
    background-color: transparent;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 18px;
}

.secure-text {
    display: flex;
    flex-direction: column;
}

.secure-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #000000;
}

.secure-sub {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.7);
}

/* Main Area */
.portal-main {
    padding: 40px 20px;
}

.portal-container {
    max-width: 820px;
    margin: 0 auto;
}

/* Card Styles */
.upload-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(5, 46, 68, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 25px;
}

.card-header-section {
    text-align: center;
    margin-bottom: 35px;
}

.card-header-icon-wrap {
    background-color: var(--light-blue);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    color: var(--secondary-navy);
    font-size: 24px;
}

.card-header-section h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary-navy);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.card-header-section .subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    border: 1px solid #edf2f6;
    border-radius: 12px;
    margin-bottom: 35px;
    background-color: #fafbfc;
}

.info-col {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
}

.info-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background-color: #edf2f6;
}

.info-icon-circle {
    background-color: var(--light-blue);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-navy);
    font-size: 18px;
    flex-shrink: 0;
}

.info-col:nth-child(2) .info-icon-circle {
    background-color: #fff8e6;
    color: #b8860b;
}

.info-col:nth-child(3) .info-icon-circle {
    background-color: #fff3eb;
    color: #e67e22;
}

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

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.info-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary-navy);
    line-height: 1.3;
}

.info-val.exp-date-val {
    color: #e67e22;
}

.info-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Drag Drop Zone */
.drag-drop-zone {
    border: 2px dashed var(--dropzone-border);
    background-color: var(--dropzone-bg);
    border-radius: 12px;
    padding: 45px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 25px;
}

.drag-drop-zone:hover, .drag-drop-zone.dragover {
    background-color: var(--dropzone-hover);
    border-color: var(--secondary-navy);
}

.cloud-icon-wrap {
    color: #3498db;
    font-size: 54px;
    margin-bottom: 15px;
    transition: transform 0.2s ease;
}

.drag-drop-zone:hover .cloud-icon-wrap {
    transform: translateY(-5px);
}

.drag-drop-zone h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-navy);
    margin: 0 0 10px 0;
}

.or-separator {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 15px 0;
    position: relative;
}

.or-separator::before, .or-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background-color: #edf2f6;
}

.or-separator::before {
    right: 50%;
    margin-right: 25px;
}

.or-separator::after {
    left: 50%;
    margin-left: 25px;
}

.btn-browse-file {
    background-color: var(--secondary-navy);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(11, 53, 88, 0.15);
}

.btn-browse-file:hover {
    background-color: var(--primary-navy);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(11, 53, 88, 0.2);
}

.formats-text {
    font-size: 12px;
    color: var(--text-muted);
    margin: 20px 0 0 0;
}

/* File Preview Zone */
.file-preview-zone {
    margin-top: 10px;
}

.preview-card {
    background-color: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.preview-icon {
    font-size: 32px;
    color: #e74c3c; /* PDF color */
}

.preview-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.preview-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-size {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-remove-file {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-remove-file:hover {
    background-color: #fdf2f2;
}

/* Phone Camera Option */
.camera-option {
    text-align: center;
    margin-bottom: 30px;
}

.btn-camera {
    background-color: #ffffff;
    color: #2980b9;
    border: 1px solid #d4e6f4;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    width: 100%;
    justify-content: center;
}

.btn-camera:hover {
    background-color: var(--light-blue);
    border-color: #aed3ec;
    color: #2471a3;
}

.camera-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin: 8px 0 0 0;
}

/* Notes Section */
.notes-section {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.notes-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-navy);
    margin-bottom: 8px;
}

.optional-tag {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 13px;
}

.notes-textarea {
    border: 1px solid #dcdfe3;
    border-radius: 8px;
    padding: 12px 15px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    resize: vertical;
    transition: all 0.2s ease;
    background-color: #fafbfc;
}

.notes-textarea:focus {
    outline: none;
    border-color: var(--secondary-navy);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(11, 53, 88, 0.08);
}

/* Submit Section */
.submit-section {
    border-top: 1px solid #f0f2f5;
    padding-top: 25px;
}

.btn-submit-securely {
    background-color: var(--secondary-navy);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(11, 53, 88, 0.25);
}

.btn-submit-securely:hover {
    background-color: var(--primary-navy);
    box-shadow: 0 6px 15px rgba(11, 53, 88, 0.35);
}

.btn-submit-securely:disabled {
    background-color: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-icon {
    font-size: 16px;
}

.trust-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.5;
    text-align: left;
}

.trust-icon {
    font-size: 12px;
    color: var(--accent-gold);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Footer Box Layout */
.portal-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.footer-box {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(5, 46, 68, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.badge-icon-check, .badge-icon-help {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.badge-icon-check {
    background-color: var(--light-success);
    color: var(--success-green);
}

.badge-icon-help {
    background-color: var(--light-blue);
    color: #2980b9;
}

.footer-box-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-navy);
    margin: 0 0 4px 0;
}

.footer-box-text p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.footer-link {
    color: #2980b9;
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Error Card */
.error-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.error-icon {
    font-size: 60px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.error-card h2 {
    color: var(--secondary-navy);
    font-weight: 700;
    margin: 0 0 10px 0;
}

.error-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0 0 25px 0;
}

.btn-back {
    display: inline-block;
    background-color: var(--secondary-navy);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn-back:hover {
    background-color: var(--primary-navy);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-left {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-col:not(:last-child)::after {
        display: none;
    }
    
    .info-col {
        border-bottom: 1px solid #edf2f6;
    }
    
    .portal-footer-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-card {
        padding: 25px 20px;
    }
}

/* Multi-file Preview Additions */
.preview-files-list {
    max-height: 380px;
    overflow-y: auto;
    padding-right: 5px;
}

.preview-files-list::-webkit-scrollbar {
    width: 6px;
}

.preview-files-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.preview-files-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.preview-files-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.preview-card {
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 53, 88, 0.08);
    border-color: var(--dropzone-border);
}

.btn-clear-all {
    transition: all 0.2s ease;
}

.btn-clear-all:hover {
    color: #c0392b !important;
    transform: scale(1.02);
}

.files-count-badge {
    transition: all 0.2s ease;
}

