
/* =====================================
   SHUNA SHADER v1.0
   White + Blue Design
===================================== */

:root {
    --blue: #2878e8;
    --blue-dark: #1762ce;
    --blue-light: #edf5ff;
    --background: #f7f9fc;
    --white: #ffffff;
    --text: #202b3c;
    --muted: #8994a5;
    --border: #e8edf4;
    --shadow: 0 5px 20px rgba(35, 70, 120, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", "Meiryo", sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

/* SIDEBAR */

.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 8px;
    margin-bottom: 45px;
}

.logo-area h2 {
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -0.4px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--blue);
    color: white;
    display: grid;
    place-items: center;
    font-size: 23px;
    font-weight: 800;
}

.nav-label {
    color: #a0a9b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 0 12px;
    margin-bottom: 12px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #667286;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
}

.nav-btn span {
    font-size: 19px;
    width: 20px;
    text-align: center;
}

.nav-btn:hover {
    background: #f3f7fc;
    color: var(--blue);
}

.nav-btn.active {
    background: var(--blue-light);
    color: var(--blue);
}

.sidebar-bottom {
    margin-top: auto;
}

.sidebar-bottom p {
    margin: 22px 12px 0;
    font-size: 10px;
    color: #a5afbd;
}

/* MAIN CONTENT */

.main-content {
    margin-left: 250px;
    padding: 42px 48px;
    max-width: 1600px;
}

.page {
    display: none;
    animation: pageFade 0.25s ease;
}

.page.active {
    display: block;
}

@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HOME */

.welcome-banner {
    min-height: 260px;
    background: linear-gradient(120deg, #1768d9, #4a9bfa);
    border-radius: 18px;
    padding: 42px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(40, 120, 232, 0.16);
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: 0.8;
}

.welcome-banner h1 {
    font-size: 35px;
    margin: 13px 0;
    letter-spacing: -1px;
}

.welcome-banner p {
    font-size: 13px;
    line-height: 1.9;
    opacity: 0.9;
}

.welcome-decoration {
    position: absolute;
    right: 65px;
    top: -65px;
    font-size: 340px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.09);
    pointer-events: none;
}

.primary-btn {
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    background: var(--blue);
    color: white;
    font-size: 12px;
    font-weight: 700;
    transition: 0.2s;
}

.primary-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.welcome-banner .primary-btn {
    margin-top: 20px;
    background: white;
    color: var(--blue);
}

.welcome-banner .primary-btn:hover {
    background: #eaf3ff;
}

.section-heading {
    margin: 40px 0 20px;
}

.section-heading h2 {
    font-size: 20px;
}

.section-heading p {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.feature-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 23px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: #b8d4fa;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 21px;
    margin-bottom: 15px;
}

.feature-icon.blue {
    background: #eaf3ff;
    color: #2878e8;
}

.feature-icon.purple {
    background: #f2edff;
    color: #8056d8;
}

.feature-icon.green {
    background: #e8f8ef;
    color: #29a56a;
}

.feature-icon.orange {
    background: #fff3e6;
    color: #e99439;
}

.feature-card h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
}

.feature-link {
    display: inline-block;
    margin-top: 17px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
}

.info-panel {
    margin-top: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 25px;
}

.info-panel h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

.info-panel p {
    font-size: 12px;
    line-height: 1.9;
    color: var(--muted);
}

.supported-formats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.supported-formats span {
    font-size: 11px;
    color: var(--muted);
}

.supported-formats strong {
    font-size: 10px;
    background: var(--blue-light);
    color: var(--blue);
    border-radius: 5px;
    padding: 6px 9px;
}

/* PAGE HEADER */

.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 27px;
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}

/* EXTRACT */

.extract-box {
    background: white;
    border: 2px dashed #c9d9ed;
    border-radius: 15px;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 35px;
    transition: 0.2s;
}

.extract-box.drag-over {
    border-color: var(--blue);
    background: var(--blue-light);
}

.extract-icon {
    width: 55px;
    height: 55px;
    background: var(--blue-light);
    color: var(--blue);
    display: grid;
    place-items: center;
    border-radius: 15px;
    font-size: 27px;
    margin-bottom: 17px;
}

.extract-box h2 {
    font-size: 17px;
}

.extract-box p {
    font-size: 12px;
    color: var(--muted);
    margin: 10px 0;
}

.extract-box .primary-btn {
    margin-top: 10px;
}

.file-info {
    font-size: 10px !important;
}

.progress-area {
    background: white;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 12px;
}

.progress-header span {
    color: var(--blue);
}

.progress-track {
    height: 7px;
    border-radius: 10px;
    background: #edf1f7;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--blue);
    transition: width 0.2s;
}

.status {
    margin-top: 15px;
    font-size: 12px;
    color: var(--blue);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    gap: 15px;
}

.result-header h2 {
    font-size: 19px;
}

.result-header p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
}

.result-total {
    text-align: right;
}

.result-total span {
    display: block;
    font-size: 10px;
    color: var(--muted);
}

.result-total strong {
    font-size: 17px;
    color: var(--blue);
}

.download-area {
    margin: 18px 0;
}

.download-main-btn {
    width: 100%;
    padding: 15px;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    margin: 22px 0 12px;
}

.file-list-header h3 {
    font-size: 14px;
}

.file-list-header span {
    font-size: 11px;
    color: var(--muted);
}

.bin-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.bin-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 14px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bin-item strong {
    font-size: 12px;
    overflow-wrap: anywhere;
}

.bin-item span {
    font-size: 10px;
    color: var(--muted);
}

.bin-item button {
    border: 1px solid var(--border);
    background: white;
    color: var(--blue);
    border-radius: 6px;
    padding: 7px 11px;
    font-size: 10px;
    flex-shrink: 0;
}

/* SHADERS */

.shader-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.shader-toolbar input,
.shader-toolbar select {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12px;
    outline: none;
}

.shader-toolbar input {
    flex: 1;
    min-width: 0;
}

.shader-toolbar input:focus,
.shader-toolbar select:focus {
    border-color: var(--blue);
}

.shader-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.shader-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 13px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.2s;
}

.shader-card:hover {
    transform: translateY(-3px);
    border-color: #c5dcfb;
}

.shader-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #eaf3ff, #dceaff);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--blue);
    font-size: 35px;
}

.shader-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shader-card-content {
    padding: 16px;
}

.shader-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.shader-card h3 {
    font-size: 14px;
    overflow-wrap: anywhere;
}

.favorite-btn {
    border: none;
    background: transparent;
    color: #aeb8c7;
    font-size: 21px;
    line-height: 1;
    padding: 0 3px;
}

.favorite-btn.active {
    color: #f3a93c;
}

.shader-description {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
    margin: 10px 0 15px;
    min-height: 38px;
    overflow-wrap: anywhere;
}

.shader-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.shader-downloads button {
    border: 1px solid #d7e6fa;
    background: var(--blue-light);
    color: var(--blue);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 10px;
    font-weight: 700;
}

.shader-downloads button:hover {
    background: #dcecff;
}

.empty-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 55px 25px;
    text-align: center;
}

.empty-panel h2 {
    font-size: 16px;
    margin: 12px 0 8px;
}

.empty-panel p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
}

.empty-icon {
    color: #9bbce9;
    font-size: 38px;
}

/* ADMIN */

.admin-notice {
    background: #fff9e9;
    border: 1px solid #f4e3b9;
    border-radius: 10px;
    padding: 17px 20px;
    margin-bottom: 22px;
}

.admin-notice strong {
    color: #a87819;
    font-size: 12px;
}

.admin-notice p {
    color: #9b875e;
    font-size: 11px;
    line-height: 1.8;
    margin-top: 6px;
}

.admin-form {
    background: white;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 25px;
    max-width: 700px;
}

.admin-form h2,
.admin-list-section h2 {
    font-size: 17px;
    margin-bottom: 22px;
}

.admin-form label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin: 18px 0 8px;
}

.admin-form input:not([type="checkbox"]):not([type="file"]),
.admin-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    outline: none;
    font-size: 12px;
    resize: vertical;
    background: #fcfdff;
}

.admin-form input:focus,
.admin-form textarea:focus {
    border-color: var(--blue);
}

.admin-form input[type="file"] {
    display: block;
    font-size: 11px;
    max-width: 100%;
}

.admin-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 500;
}

.admin-form .primary-btn {
    margin-top: 20px;
    width: 100%;
}

.admin-list-section {
    margin-top: 35px;
}

.admin-shader-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 15px 18px;
    margin-bottom: 9px;
}

.admin-shader-item strong {
    font-size: 12px;
}

.admin-shader-item p {
    color: var(--muted);
    font-size: 10px;
    margin-top: 5px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-actions button {
    border: 1px solid var(--border);
    background: white;
    color: var(--blue);
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 10px;
}

.admin-actions button.delete {
    color: #dc5555;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .main-content {
        padding: 35px 28px;
    }

    .shader-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .sidebar {
        width: 70px;
        padding: 20px 8px;
    }

    .logo-area {
        justify-content: center;
        padding: 0;
    }

    .logo-area h2,
    .nav-label,
    .nav-btn:not(.active) {
        font-size: 0;
    }

    .logo-area h2 {
        display: none;
    }

    .nav-btn {
        justify-content: center;
        padding: 12px 5px;
    }

    .nav-btn span {
        font-size: 20px;
    }

    .sidebar-bottom p {
        display: none;
    }

    .main-content {
        margin-left: 70px;
        padding: 28px 16px;
    }

    .welcome-banner {
        padding: 28px 22px;
    }

    .welcome-banner h1 {
        font-size: 25px;
    }

    .welcome-decoration {
        right: -10px;
        font-size: 210px;
    }

    .feature-grid,
    .shader-grid {
        grid-template-columns: 1fr;
    }

    .shader-toolbar {
        flex-direction: column;
    }

    .result-header {
        align-items: flex-start;
    }

    .admin-form {
        padding: 18px;
    }
}

[hidden] {
    display: none !important;
}
