/* Student ID Generator Styles */

.id-main {
    min-height: 80vh;
    background: var(--bg-light);
    padding: 3rem 0;
}

.id-generator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    align-items: start;
}

@media (max-width: 900px) {
    .id-generator-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}

.id-form-section h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-family: 'Shippori Mincho', serif;
}

.section-lead {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-hint {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.3rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Preview Section */
.id-preview-section {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.preview-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    line-height: 0;
    /* Remove gap below canvas */
}

#id-canvas {
    width: 100%;
    height: auto;
    display: block;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-color);
    gap: 0.5rem;
}

.loading-overlay.hidden {
    display: none;
}

.download-area {
    margin-top: 1.5rem;
    animation: slideUp 0.3s ease;
}

.download-area.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.complete-msg {
    color: #2e7d32;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-twitter {
    background: #000;
    color: #fff;
    border: none;
    justify-content: center;
}

.btn-twitter:hover {
    background: #333;
}