/* Scoped styles for the UUID Generator App */

:root {
    --uuid-bg: rgba(17, 24, 39, 0.7);
    /* Darker slate/gray */
    --uuid-primary: #14b8a6;
    /* Teal-500 */
    --uuid-primary-hover: #0d9488;
    /* Teal-600 */
    --uuid-border: rgba(255, 255, 255, 0.1);
}

.app-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.main-card {
    background: var(--uuid-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--uuid-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    min-height: 500px;
    margin-top: 2rem;
}

/* Common Section Styles */
.input-section,
.display-section {
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Left Section */
.input-section {
    border-right: 1px solid var(--uuid-border);
}

.brand {
    margin-bottom: 3rem;
}

.brand h1 {
    font-size: 2.5rem;
    font-weight: 600;
    background: linear-gradient(to right, #2dd4bf, #22d3ee);
    /* Teal to Cyan */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.brand p {
    color: #94a3b8;
    font-size: 1rem;
}

.input-group {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="number"] {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--uuid-border);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

input[type="number"]:focus {
    border-color: var(--uuid-primary);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

#generate-btn {
    background: linear-gradient(135deg, var(--uuid-primary), var(--uuid-primary-hover));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#generate-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

#generate-btn:active {
    transform: translateY(0);
}

/* Right Section */
.display-section {
    align-items: center;
    background: rgba(15, 23, 42, 0.3);
    position: relative;
    overflow-y: auto;
    /* Allow scrolling if list is long */
}

.placeholder {
    text-align: center;
    color: #94a3b8;
}

#result-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.result-header label {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--uuid-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.icon-btn:hover {
    background: rgba(20, 184, 166, 0.1);
}

#uuid-output {
    flex: 1;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--uuid-border);
    border-radius: 12px;
    padding: 1rem;
    color: #f8fafc;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    resize: none;
    outline: none;
    line-height: 1.6;
}

#uuid-output:focus {
    border-color: var(--uuid-primary);
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .main-card {
        flex-direction: column;
        height: auto;
    }

    .input-section {
        border-right: none;
        border-bottom: 1px solid var(--uuid-border);
        padding: 2rem;
    }

    .display-section {
        padding: 2rem;
        min-height: 300px;
    }
}