/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette */
    --primary-color: #0052cc;
    --primary-gradient: linear-gradient(135deg, #0052cc 0%, #003399 100%);
    --secondary-color: #00c6ff;
    --accent-color: #ffb400;

    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --text-main: #172b4d;
    --text-muted: #6b778c;
    --border-color: #dfe1e6;

    --success-bg: #e3fcef;
    --success-text: #006644;
    --error-bg: #ffebe6;
    --error-text: #de350b;

    /* Spacing & Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(9, 30, 66, 0.25);
    --shadow-md: 0 4px 8px -2px rgba(9, 30, 66, 0.25), 0 0 1px rgba(9, 30, 66, 0.31);
    --shadow-lg: 0 20px 32px -8px rgba(9, 30, 66, 0.25);

    --header-height: 70px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #003399;
}

ul {
    list-style-type: none;
    padding: 0;
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: var(--shadow-sm);
}

header .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

header nav a {
    color: var(--text-main);
    font-weight: 500;
    margin-left: 1.5rem;
    position: relative;
    padding: 0.5rem 0;
}

header nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

header nav a:hover:after {
    width: 100%;
}

/* Container */
.container {
    max-width: 900px;
    margin: 2rem auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f9fafb;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
    background: #fff;
}

/* Buttons */
button,
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    filter: brightness(110%);
}

button:active,
.btn:active {
    transform: translateY(0);
}

button.secondary,
.btn.secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

button.secondary:hover,
.btn.secondary:hover {
    background: #f4f5f7;
}

button.btn-block {
    width: 100%;
}

/* Alerts / Flash Messages */
.flash {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.flash.success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid rgba(0, 102, 68, 0.1);
}

.flash.error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid rgba(222, 53, 11, 0.1);
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Custom: Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dashboard-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.dashboard-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* Custom: Split Layout (Resume Upload) */
.split-layout {
    display: flex;
    gap: 3rem;
}

.split-layout>div {
    flex: 1;
}

.split-layout .divider {
    text-align: center;
    margin: 1.5rem 0;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
}

.split-layout .divider:before,
.split-layout .divider:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.split-layout .divider:before {
    left: 0;
}

.split-layout .divider:after {
    right: 0;
}

@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .split-layout>div:last-child {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 2rem;
    }
}

/* Custom: Card Box */
.card-box {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    margin-bottom: 1rem;
}

/* Lists */
.list-clean {
    list-style: none;
    padding-left: 0;
}

.list-clean li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.list-clean li:last-child {
    border-bottom: none;
}

.text-success {
    color: var(--success-text);
}

.text-danger {
    color: var(--error-text);
}


/* Responsive Tables */
@media screen and (max-width: 768px) {
    .table-responsive-stack thead {
        display: none;
    }

    .table-responsive-stack tr {
        display: block;
        margin-bottom: 1rem;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        padding: 1rem;
    }

    .table-responsive-stack td {
        display: block;
        text-align: right;
        padding: 0.5rem 0;
        border-bottom: 1px dashed var(--border-color);
        position: relative;
    }

    .table-responsive-stack td:last-child {
        border-bottom: none;
    }

    .table-responsive-stack td:before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        font-size: 0.85rem;
    }

    .table-responsive-stack td .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}