/*
Theme Name: Advance Submit Portal
Theme URI: https://submit.sltnf.com
Author: Aryan
Description: Specialized theme for the submission and review portal of SLTNF with advanced payment & chat integration.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: sltnf-submit
*/

:root {
    --primary-color: #004d99;
    /* Professional blue */
    --hover-color: #003366;
    --bg-color: #f4f7f6;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;

    /* Status Colors */
    --status-review-bg: #fff3cd;
    --status-review-text: #856404;

    --status-accepted-bg: #d4edda;
    --status-accepted-text: #155724;

    --status-rejected-bg: #f8d7da;
    --status-rejected-text: #721c24;

    --status-rework-bg: #cce5ff;
    --status-rework-text: #004085;

    --status-indexed-bg: #d4edda;
    --status-indexed-text: #155724;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
}

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

/* Header */
.site-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.auth-nav a {
    text-decoration: none;
    margin-left: 20px;
    color: var(--text-main);
    font-weight: 500;
}

.auth-nav a.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
}

/* Button variants */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Landing Page (Unregistered) */
.landing-hero {
    text-align: center;
    padding: 100px 20px;
    background-color: #fff;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.landing-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.landing-hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

.landing-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.dashboard-sidebar {
    width: 250px;
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
}

.dashboard-nav {
    list-style: none;
}

.dashboard-nav li {
    margin-bottom: 10px;
}

.dashboard-nav a {
    display: block;
    padding: 10px 15px;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.dashboard-nav a.active,
.dashboard-nav a:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

.dashboard-main {
    flex: 1;
    padding: 40px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Tables */
.submissions-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.submissions-table th,
.submissions-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.submissions-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--text-muted);
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.status-review {
    background-color: var(--status-review-bg);
    color: var(--status-review-text);
}

.status-accepted {
    background-color: var(--status-accepted-bg);
    color: var(--status-accepted-text);
}

.status-rejected {
    background-color: var(--status-rejected-bg);
    color: var(--status-rejected-text);
}

.status-rework {
    background-color: var(--status-rework-bg);
    color: var(--status-rework-text);
}

.status-indexed {
    background-color: var(--status-indexed-bg);
    color: var(--status-indexed-text);
}

/* =========================================================================
   Mobile Responsiveness
   ========================================================================= */

@media screen and (max-width: 768px) {
    /* Header layout */
    .header-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .auth-nav {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .auth-nav a {
        margin-left: 0 !important;
    }

    /* Landing actions */
    .landing-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .landing-hero h1 {
        font-size: 32px;
    }

    /* Dashboard Layout */
    .dashboard-layout {
        flex-direction: column;
        min-height: auto;
    }

    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
    }

    .dashboard-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .dashboard-nav li {
        margin-bottom: 0;
    }

    .dashboard-main {
        padding: 20px 15px;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Table Wrapping (Horizontal Scroll) */
    .submissions-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Edit Profile form fixes */
    .sltnf-profile-edit {
        padding: 15px !important;
    }
}