﻿/* Wrapper & container */
.wrapper {
    padding: 24px;
}

.container {
    position: relative;
    background-color: #2a2a38;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    color: #f3f3f3;
}

/* Navigator */
.navigator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: small;
    color: #b3b3b3;
}

/* Center & links */
.center {
    width: 100%;
    text-align: center;
}

.help-link {
    margin-top: 15px;
    display: inline-block;
    cursor: pointer;
    color: #a78bfa;
    font-size: small;
    text-transform: uppercase;
}

    .help-link:hover {
        color: #7c3aed;
    }

/* Titles */
h1 {
    margin-top: 25px;
    color: #f3f3f3;
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: bold;
}

p.description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #b3b3b3;
}

/* Textarea */
textarea {
    width: 100%;
    min-height: 100px;
    margin-bottom: 20px;
    padding: 10px;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 1px solid #444;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background-color: #1f1f2a;
    color: #f3f3f3;
}

    textarea:focus {
        border-color: #a78bfa;
        outline: none;
    }

/* Buttons */
button {
    background-color: #6d28d9;
    color: #fff;
    font-size: 1rem;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    button:hover {
        background-color: #4c1d95;
    }

/* Result text */
.result-text {
    margin: 15px 0;
    font-weight: bold;
    color: #f3f3f3;
    text-align: center;
}

/* Progress bar */
.progress-container {
    margin: 24px auto;
    width: 100%;
    max-width: 500px;
    height: 20px;
    background: #444;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #6d28d9;
    transition: width 1s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    h1 {
        font-size: 1.4rem;
    }

    textarea {
        font-size: 0.9rem;
        min-height: 80px;
    }

    button {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.2rem;
    }

    p.description {
        font-size: 0.85rem;
    }

    textarea {
        min-height: 70px;
        font-size: 0.85rem;
    }
}

/* Drawer backdrop */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
}

/* Drawer */
.drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: #2a2a38;
    box-shadow: -4px 0 12px rgba(0,0,0,0.6);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    color: #f3f3f3;
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
}

    .drawer.open {
        right: 0;
    }

.drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.drawer-close {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #f3f3f3;
}

/* Drawer content */
.drawer-content {
    margin-top: 50px;
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

    .drawer-content h2 {
        margin-top: 0;
        color: white;
    }

    .drawer-content h3 {
        color: #f3f3f3;
    }

    .drawer-content p {
        color: #b3b3b3;
    }

/* Links inside drawer */
.example-link {
    color: #a78bfa;
    text-decoration: none;
    cursor: pointer;
    font-size: small;
    margin-left: 5px;
    text-transform: uppercase;
}

    .example-link:hover {
        color: #7c3aed;
    }

/* Lists */
ul {
    list-style: none;
    padding-left: 1.5em;
    margin-left: 0;
}

    ul li {
        margin-bottom: 0.8em;
    }
