.main-content {
    margin-left: 240px; 
    padding: 40px; 
    flex: 1;
}

.page-title {
    margin-bottom: 30px; 
    color: #2c3e50;
    font-size: 24px;
}

.content-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 700px;
}

.form-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2c3e50;
}

.upload-wrapper input[type="file"] {
    width: 100%;
    padding: 20px;
    border: 2px dashed #dce4ec;
    border-radius: 6px;
    background: #fcfdfe;
    cursor: pointer;
    box-sizing: border-box;
}

.upload-wrapper input[type="file"]:hover {
    border-color: #3498db;
}

.hint {
    margin-top: 8px;
    font-size: 13px;
    color: #95a5a6;
}

.progress-bar-bg {
    width: 100%;
    background-color: #ecf0f1;
    border-radius: 5px;
    height: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: #3498db;
    transition: width 0.3s;
}

.color-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-color {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: transform 0.2s;
}

.btn-color:hover {
    transform: scale(1.05);
}

.color-blue { background-color: #438EDB; }
.color-red { background-color: #FF0000; }
.color-white { background-color: #FFFFFF; }

.preview-container {
    width: 100%;
    background-image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%), 
                      linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

#display-canvas {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.action-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.primary-btn { background-color: #3498db; color: white; }
.primary-btn:hover { background-color: #2980b9; }

.secondary-btn { background-color: #95a5a6; color: white; }
.secondary-btn:hover { background-color: #7f8c8d; }

.info-box {
    margin-top: 30px;
    max-width: 700px;
    background: #ebf5fb;
    padding: 20px;
    border-radius: 8px;
    color: #2980b9;
}

.info-box h3 { margin-top: 0; font-size: 16px; }
.info-box ul { margin: 10px 0 0 0; padding-left: 20px; font-size: 14px; line-height: 1.8; }