:root {
    --darkest-color: #05222F;
    --middark-color: #1777A4;
    --brand-blue: #A39BFE;
    --coloressa-purple: #d94dd3;
    --brand-darkbrown: #191D21;
    --brand-midbrown: #394145;
    --midlight-color: #363636;
    --lightest-color: #E8F6FD;
    --lightgray: #EAEFF1;
    --generaltextcolor: #2f2f2f;
    --lightbordergray: #E3E6EC;

    --gray0: #222222;
    --gray1: #434343;
    --gray2: #656565;
    --gray3: #868686;
    --gray4: #A8A8A8;
    --gray5: #C9C9C9;
    --gray6: #EBEBEB;
    --gray7: #EEEEEE;
    --gray8: #F1F1F1;
    --gray9: #F4F4F4;
    --gray10: #F6F6F6;
    --gray11: #F9F9F9;
    --gray12: #FCFCFC;
}

html {
    box-sizing: border-box;
    /* scroll-behavior: smooth; */
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

a {
    color: var(--hyperlinkcolor);
}

@font-face {
    font-family: 'xanmono';
    src: url('Unageo-SemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


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

body {
    font-family: 'xanmono', Manrope, helvetica, helvetica neue, Segoe UI, sans-serif;
    line-height: 1.4;
    color: var(--gray3);
    background: linear-gradient(135deg, #fcfcfc 0%, #f0f0f0 100%);
    min-height: 100vh;
    font-weight: 500; /* default */
    font-size: 14px !important;
}

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

.header {
    text-align: left;
    margin-bottom: 30px;
    color: #555;
}

.logo {
    font-size: 4.3rem;
    font-weight: 300;
    margin-bottom: -20px;
    color: rgba(136, 136, 136, 0.4);
    margin-top: -40px;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
}

.nav {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}

.nav-link {
    color: rgb(45, 45, 45);
    text-decoration: none;
    padding: 10px 20px 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3)
}

.main-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 500;
}

.feature-card p {
    margin-bottom: 20px;
    color: #666;
}

.btn {
    display: inline-block;
    background: #A39BFE;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: xanmono;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Generator Page Styles */

.generator-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.controls-panel {
    background: rgba(20, 20, 20, 0.04);
    padding: 25px;
    border-radius: 15px;
}

.control-group {
    margin-bottom: 25px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-family: xanmono;
}

.control-group select, .control-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: xanmono;
}

.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.active {
    border-color: #333;
}

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

.image-preview {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.image-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    text-align: left;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-secondary {
    background: #A39BFE;
    font-family: xanmono;
}

.btn-success {
    background: #A39BFE;
    font-family: xanmono;
}

/* Uploader Styles */

.uploader-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.upload-area:hover {
    border-color: #A39BFE;
}

.upload-area.dragover {
    border-color: #A39BFE;
    background: #f8f9fa;
}

.filter-options {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.filter-option {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-option:hover {
    border-color: #667eea;
    background: #fff;
}

.filter-option.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

/* API Documentation */

.api-endpoint {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #A39BFE;
    font-family: xanmono;
}

.code-block {
    background: #2d2d2d;
    color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    /*font-family: 'Courier New', monospace;*/
    font-family: xanmono;
    overflow-x: auto;
    margin: 15px 0;
}

/* Responsive Design */

@media (max-width: 768px) {
    .generator-container, .uploader-container {
        grid-template-columns: 1fr;
    }

    .nav {
        flex-direction: column;
        align-items: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }
}