/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #e8e4d8;
    background-image: 
        linear-gradient(90deg, transparent 79px, #d4cfc4 79px, #d4cfc4 81px, transparent 81px),
        linear-gradient(#f5f1e8 .1em, transparent .1em);
    background-size: 100% 1.2em;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
}

.main-window {
    background: #fdfbf7;
    border: 1px solid #ccc;
    box-shadow: 
        0 1px 3px rgba(0,0,0,0.12),
        0 8px 24px rgba(0,0,0,0.08);
    position: relative;
    max-width: 600px;
    width: 100%;
}

.main-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 80px;
    width: 2px;
    height: 100%;
    background: #ffcdd2;
    opacity: 0.3;
}

.title-bar {
    background: #f5f5f5;
    border-bottom: 2px solid #333;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-text {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    letter-spacing: 2px;
}

.content {
    padding: 40px;
    padding-left: 100px;
}

.subtitle {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    display: block;
    padding: 15px 20px;
    font-size: 1em;
    text-decoration: none;
    color: #333;
    background: white;
    border: 2px solid #333;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: #333;
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

.btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.back-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #333;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    text-decoration: none;
    color: #333;
    display: inline-block;
}

.back-btn:hover {
    background: #333;
    color: white;
}

.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #999;
    font-size: 0.75em;
    color: #999;
    text-align: center;
}

/* Section styles for QR generator and password generator */
.section {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #333;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.section.show {
    display: block;
}

.section-title {
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
}

/* Form elements */
label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85em;
    font-weight: bold;
}

textarea {
    width: 100%;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    border: 2px solid #333;
    margin-bottom: 20px;
    min-height: 100px;
    resize: vertical;
    background: white;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.1);
}

textarea:focus {
    outline: none;
    border-color: #000;
}

button {
    padding: 12px 24px;
    font-size: 1em;
    font-family: 'Courier New', monospace;
    background: white;
    border: 2px solid #333;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
    font-weight: bold;
}

button:hover {
    background: #333;
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.2);
}

button:active {
    transform: translate(0, 0);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

/* QR Generator specific */
.size-options {
    margin-bottom: 20px;
}

.size-options label {
    display: inline;
    margin-right: 20px;
    font-weight: normal;
    font-size: 0.85em;
}

.size-options input[type="radio"] {
    margin-right: 5px;
    cursor: pointer;
}

.info-text {
    font-size: 0.75em;
    color: #666;
    margin-top: 8px;
    line-height: 1.4;
}

#qrcode {
    display: none;
}

#qrcode canvas {
    margin: 0 auto;
    border: 1px solid #ddd;
}

.download-btn {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 600px) {
    .title-text {
        font-size: 1.2em;
    }
    
    .content {
        padding: 30px 20px;
        padding-left: 20px;
    }

    .main-window::before {
        display: none;
    }

    .size-options label {
        display: block;
        margin-bottom: 8px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
}