.main-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-panel {
    width: 96%;
    max-width: 100%;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.settings-panel h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.3rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

.collapsible-section {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.collapsible-header {
    padding: 12px 15px;
    background-color: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.collapsible-header:hover {
    background-color: #f1f1f1;
}

.collapsible-content {
    padding: 15px;
    display: none;
    border-top: 1px solid #eee;
}

.collapsible-content.active {
    display: block;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.watermark-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #3498db;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.range-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #2ecc71;
    color: white;
}

.btn-secondary:hover {
    background-color: #27ae60;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background-color: #f1f8ff;
}

.preview-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.paper-preview {
    padding: 30px;
    text-align: center;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#paper-canvas {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
    background-color: white !important;
    transition: all 0.3s ease;
}

.preview-placeholder {
    color: #999;
    padding: 20px;
}

@media (max-width: 768px) {
    .main-container {
        padding: 0 10px;
    }

    .button-group {
        flex-direction: row;
        justify-content: center;
    }

    .btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .paper-preview {
        min-height: 400px;
        padding: 15px;
    }

    .settings-panel {
        padding: 15px;
    }

    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .form-group.full-width {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-wrap: wrap;
    }

    .btn {
        width: 100%;
    }
}

.type-specific {
    display: none;
}

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

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

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.hint-text {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
}

@media (min-width: 769px) {
    .form-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .form-group.full-width {
        grid-column: 1 / -1;
    }

    .form-group.double-width {
        grid-column: span 2;
    }
}

.feature-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-card {
    flex: 1;
    min-width: 250px;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-card .icon {
    font-size: 24px;
    color: #1E9FFF;
    margin-bottom: 10px;
    display: inline-block;
}

.feature-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.step-section {
    margin-bottom: 30px;
}

.steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.step {
    flex: 1;
    min-width: 200px;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    position: relative;
}

.step-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #1E9FFF;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin-right: 8px;
    font-weight: bold;
}

.step-arrow {
    color: #1E9FFF;
    font-size: 20px;
    padding: 0 5px;
}

.step-content p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.tip-section {
    margin-bottom: 30px;
}

.tips-list {
    list-style-type: none;
    padding: 0;
}

.tips-list li {
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.tips-list li:before {
    content: "✓";
    position: absolute;
    left: 10px;
    color: #52c41a;
    font-weight: bold;
}

.scenario-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.scenario {
    flex: 1;
    min-width: 200px;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
}

.scenario span {
    display: inline-block;
    background-color: #1E9FFF;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.scenario p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.demo-btn {
    background-color: #1E9FFF;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 5px;
}

.demo-btn:hover {
    background-color: #0b8cd5;
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }

    .feature-cards,
    .scenario-tags {
        flex-direction: column;
    }

    .feature-card,
    .scenario,
    .step {
        min-width: 100%;
    }
}