﻿@import url('/assets/css/font-faces.css');
@import url('/assets/css/icons.css');
/* ============================================
   Tailored CV - Global Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --primary-color: #d0ff71;
    --secondary-color: #30363d;
    --success-color: #5f1ca4;
    --danger-color: #da3633;
    --warning-color: #d29922;
    --light-bg: #212830;
    --border-color: #30363d;
    --text-dark: #fff;
    --text-light: #fff;
    --spacing: 1rem;
    --dark-bg: #141c2b;
}


/* html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--dark-bg);
    line-height: 1.6;
} */
html,
body {
    font-family: 'gabii', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--dark-bg);
    line-height: 1.6;
}

h1,
h2,
h3,
.title {
    font-family: 'Obviously', 'gabii', system-ui, sans-serif;
    font-weight: 700;
}

a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* ============================================
   Header
   ============================================ */

.header {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 3rem var(--spacing);
    text-align: center;
    margin-bottom: 1.25rem;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.header .breadcrumb {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* ============================================
   Navigation
   ============================================ */

.breadcrumb {
    margin: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: none;
}

/* ============================================
   Main Content
   ============================================ */

.main {
    min-height: calc(100vh - 300px);
}

.hero {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero ol {
    margin-left: 1.5rem;
    line-height: 2;
}

/* ============================================
   Forms
   ============================================ */

.form-section {
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.form-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group textarea,
.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-weight: 600;
}

.btn.email {
    display: flex;
    gap: 6px;
    flex-direction: row;
    align-items: center;
}

.btn.email.phone {
    background-color: transparent;
    border: 0;
    box-shadow: inset 0 0 0 2px white;
    color: white;
}

.btn-primary {
    background-color: var(--primary-color);
    /* color: white; */
}

.btn-primary:hover {
    background-color: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    margin-right: 0.5rem;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

/* ============================================
   Status Messages
   ============================================ */

.success-box,
.error-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.success-box {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.error-box {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.success-box h3,
.error-box h3 {
    margin-bottom: 1rem;
}

.success-box code {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 2px;
    font-family: 'Courier New', monospace;
}

.url-input {
    background-color: white !important;
    border: 1px solid var(--border-color) !important;
    margin: 0.5rem 0;
}

.inline-feedback {
    margin-top: 0.75rem;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
}

.inline-feedback-success {
    background-color: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.inline-feedback-error {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* ============================================
   Loading Spinner
   ============================================ */

.hidden {
    display: none !important;
}

#loadingSpinner {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* ============================================
   Admin Dashboard
   ============================================ */
.btn-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    padding: 10px;
}

.dashboard {
    margin-bottom: 2rem;
}

.stats {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
    grid-template-columns: 1fr 1fr 3fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0ea5e9 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    opacity: 0.9;
}

/* ============================================
   Info Sections
   ============================================ */

.info-section {
    background: #5f1ca4;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.info-section h2,
.info-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-section ul {
    list-style: none;
    margin-left: 1rem;
}

.info-section li {
    margin-bottom: 0.5rem;
}

.info-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-section a:hover {
    text-decoration: none;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--light-bg);
    padding: 2rem var(--spacing);
    text-align: center;
    color: var(--text-light);
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: none;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .header {
        padding: 2rem var(--spacing);
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .form-section {
        padding: 1.5rem;
    }
}

@media print {

    .header,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: #000;
        font-size: 12px;
    }

    .container {
        max-width: 100%;
        padding: 0.25rem;
    }

    .main,
    .hero,
    .form-section,
    .info-section {
        padding: 0.25rem !important;
        margin: 0 !important;
        box-shadow: none !important;
    }

    .btn,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }

    #planJson,
    pre {
        max-height: none;
        overflow: visible;
        border: none;
        background: transparent;
        color: #000;
    }

    code,
    pre {
        white-space: pre-wrap;
        word-break: break-word;
    }
}

/* ============================================
   JSON Preview Styles
   ============================================ */

#planJson,
pre {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.4;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.6rem;
    text-align: left;
}

.admin-table th {
    background: var(--secondary-color);
    color: #fff;
}