/* INNODIA MatchPoint Styles */
@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --primary-blue: #1E295E;
    --primary-pink: #DF0E5B;
    --text-primary: #3D3D3D;
    --text-white: #FFFFFF;
    --text-secondary: #64748B;

    /* Semantic Colors */
    --background: #FFFFFF;
    --surface: #F8F9FA;
    --border-color: #E2E8F0;
    --error-color: #DC2626;
    --success-color: #16A34A;
    --warning-color: #D97706;

    /* Layout */
    --header-height: 80px;
    --border-radius: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Epilogue', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--text-white);
    height: 90px;
    /* Increased slightly for better proportion */
    display: flex;
    align-items: center;
    border-bottom: 1px solid #E2E8F0;
    /* Cleaner separator instead of shadow */
    box-shadow: none;
    /* Removing shadow for flatter INNODIA look */
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 75px;
    /* Increased to 75px as requested */
    width: auto;
    transition: transform 0.2s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo h1 {
    display: none;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-pink);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: #151e45;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 41, 94, 0.2);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-blue);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--surface);
    border-color: #CBD5E1;
}

/* Main Content */
.main {
    min-height: calc(100vh - var(--header-height) - 150px);
    padding: 60px 0;
}

/* Page Titles */
.page-title {
    margin-bottom: 40px;
}

.page-title h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    margin-top: 40px;
}

.section-header h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: 600;
}

/* Helper for Link Input */
.link-input {
    display: flex;
    gap: 10px;
}

/* Modals - Premium Restyle */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 94, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    background: var(--surface);
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary-pink);
}

.modal-body {
    padding: 32px;
}

.modal-actions {
    padding: 24px 32px;
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

/* Forms & Inputs - Premium Restyle */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: #F8FAFC;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(30, 41, 94, 0.1);
}

/* Tables - Premium Restyle */
.table-container {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #F1F5F9;
    padding: 16px 24px;
    text-align: left;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #F8FAFC;
}

/* Feature Card (Access Links etc) */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-pink);
}

.card {
    background: var(--text-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary-pink);
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 41, 94, 0.12);
}

.card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 16px;
    font-weight: 700;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
    flex-grow: 1;
    /* Ensures text fills space if needed */
}

/* Site Portal Specifics */
.info-bar-item {
    display: flex;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
}

.info-bar-label {
    background-color: #1a5c88;
    color: white;
    padding: 10px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    width: 160px;
}

.info-bar-value {
    background-color: #e5e7eb;
    color: var(--text-primary);
    padding: 10px 20px;
    font-weight: 500;
    flex: 1;
    display: flex;
    align-items: center;
}

.upload-box {
    background: linear-gradient(135deg, #60bfdd 0%, #4facd0 100%);
    color: white;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px dashed rgba(255, 255, 255, 0.4);
}

.upload-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 172, 208, 0.3);
}

/* Hero & Generic */
.hero {
    text-align: center;
    margin-bottom: 40px;
    /* Reduced margin */
    padding: 60px 24px;
    /* Reduced padding */
    background: linear-gradient(135deg, #F0F4FF 0%, #FFFFFF 100%);
    border-radius: 24px;
    border: 1px solid #E6EAF5;
}

.hero h2 {
    font-size: 2.5rem;
    /* Reduced from 3.5rem */
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.1rem;
    /* Slightly reduced */
    color: var(--text-primary);
    max-width: 700px;
    margin: 0 auto 8px;
    opacity: 0.9;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: var(--text-white);
    padding: 60px 0 30px;
    margin-top: auto;
}

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

/* Submission Card - Premium Redesign */
.submission-container {
    margin-top: 60px;
    margin-bottom: 40px;
}

.submission-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 30px 40px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    /* Soft premium shadow */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.submission-content h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.submission-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.link-input-group {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 500px;
}

.link-input-group input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.link-input-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 41, 94, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
    .submission-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .link-input-group {
        width: 100%;
        flex-direction: column;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    /* ... rest of responsive ... */

    .header .container {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }

    .link-input {
        flex-direction: column;
    }

    .link-input input,
    .link-input button {
        width: 100%;
    }
}