* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #000000;
    font-weight: bold;
}

.notice-bar {
    background: #ff6b35;
    color: #ffffff;
    padding: 8px 20px;
    text-align: center;
    font-size: 0.85em;
    font-weight: bold;
    border-bottom: 4px solid #000000;
}

.notice-bar p {
    margin: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    border: 5px solid #000000;
    box-shadow: 8px 8px 0px 0px #000000;
    margin-top: 20px;
    margin-bottom: 20px;
}

header {
    background: #ffffff;
    border-bottom: 5px solid #000000;
    padding: 20px 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hex-logo {
    width: 60px;
    height: 60px;
    background: #ffd700;
    border: 4px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    box-shadow: 4px 4px 0px 0px #000000;
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

.title-section h1 {
    font-size: 1.8em;
    margin-bottom: 5px;
    color: #000000;
    font-weight: 900;
}

.title-section p {
    font-size: 0.9em;
    color: #000000;
    font-weight: 600;
}

.main-content {
    display: flex;
    gap: 0;
    padding: 30px;
    min-height: 600px;
    border-top: 5px solid #000000;
}

.sidebar {
    width: 400px;
    background: #ffffff;
    border-right: 5px solid #000000;
    padding: 25px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.form-section h3 {
    margin-bottom: 20px;
    color: #000000;
    font-size: 1.4em;
    font-weight: 900;
    text-transform: uppercase;
    border-bottom: 4px solid #000000;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 900;
    color: #000000;
    font-size: 1em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 4px solid #000000;
    font-size: 1em;
    font-weight: bold;
    background: #ffffff;
    color: #000000;
    font-family: Arial, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    background: #ffffe0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666666;
    font-weight: normal;
}

.upload-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-btn-small {
    display: block;
    padding: 12px;
    background: #ffffff;
    border: 4px solid #000000;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    box-shadow: 4px 4px 0px 0px #000000;
    transition: all 0.1s;
}

.upload-btn-small:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px #000000;
    background: #f0f0f0;
}

.file-status {
    display: block;
    font-size: 0.8em;
    color: #666666;
    font-weight: normal;
    margin-top: 5px;
}

.btn-generate {
    width: 100%;
    padding: 18px;
    background: #ff6b35;
    color: #000000;
    border: 4px solid #000000;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 900;
    text-align: center;
    box-shadow: 6px 6px 0px 0px #000000;
    transition: all 0.1s;
    margin-top: 20px;
}

.btn-generate:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0px 0px #000000;
}

.info-section {
    margin-top: 30px;
    padding: 20px;
    background: #ffffe0;
    border: 4px solid #000000;
    box-shadow: 4px 4px 0px 0px #000000;
}

.info-section h4 {
    margin-bottom: 10px;
    font-weight: 900;
    color: #000000;
}

.info-section p {
    font-size: 0.9em;
    margin-bottom: 8px;
    font-weight: normal;
    color: #000000;
}

.canvas-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
    overflow-y: auto;
    min-height: 400px;
}

.placeholder-large {
    text-align: center;
    color: #000000;
    font-size: 1.2em;
    font-weight: bold;
    padding: 60px;
    border: 5px dashed #000000;
    background: #ffffe0;
    margin: 20px;
}

.placeholder-large p {
    margin-top: 20px;
}

.preview-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-item {
    background: #ffffff;
    border: 5px solid #000000;
    box-shadow: 6px 6px 0px 0px #000000;
    padding: 20px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 3px solid #000000;
    padding-bottom: 10px;
}

.preview-item h4 {
    font-weight: 900;
    color: #000000;
    text-transform: uppercase;
    margin: 0;
}

.btn-download {
    padding: 8px 15px;
    background: #ff6b35;
    color: #000000;
    border: 3px solid #000000;
    cursor: pointer;
    font-weight: 900;
    font-size: 0.9em;
    box-shadow: 3px 3px 0px 0px #000000;
    transition: all 0.1s;
}

.btn-download:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px 0px #000000;
}

.preview-item canvas {
    max-width: 100%;
    border: 3px solid #000000;
    display: none;
}

.placeholder-small {
    text-align: center;
    color: #000000;
    font-size: 1em;
    font-weight: bold;
    padding: 40px;
    border: 4px dashed #000000;
    background: #ffffe0;
}

.placeholder-small p {
    margin-top: 10px;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 40px;
    border: 5px solid #000000;
    box-shadow: 8px 8px 0px 0px #000000;
    text-align: center;
    z-index: 1000;
}

.loading.hidden {
    display: none;
}

.loading p {
    font-weight: 900;
    color: #000000;
    margin-top: 15px;
}

.spinner {
    border: 5px solid #f0f0f0;
    border-top: 5px solid #000000;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 5px solid #000000;
    }
}
