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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 2rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    color: #5368e4;
    margin-bottom: 2rem;
    text-align: center;
}

.name-section {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.name-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.name-section input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.name-section input[type="text"]:focus {
    outline: none;
    border-color: #5368e4;
    box-shadow: 0 0 0 3px rgba(83, 104, 228, 0.1);
}

.upload-section {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.config-section {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.config-section h2 {
    color: #5368e4;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.config-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.config-group {
    width: 100%;
}

.config-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.config-group input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: monospace;
    margin-bottom: 0.75rem;
}

.color-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-swatch:hover {
    transform: scale(1.1);
    border-color: #5368e4;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.color-swatch:active {
    transform: scale(0.95);
}

.btn-upload {
    background-color: #9b59b6;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s;
    display: inline-block;
}

.btn-upload:hover {
    background-color: #8e44ad;
}

#upload-status {
    font-size: 0.9rem;
    font-weight: 500;
}

#slides-container {
    margin-bottom: 2rem;
}

.slide-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.slide-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slide-number {
    font-weight: bold;
    color: #5368e4;
    font-size: 1.2rem;
}

.reorder-buttons {
    display: flex;
    gap: 0.25rem;
}

.reorder-btn {
    background-color: #5368e4;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s;
}

.reorder-btn:hover {
    background-color: #4055d0;
}

.reorder-btn:active {
    transform: scale(0.95);
}

.remove-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.remove-btn:hover {
    background-color: #c0392b;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: Arial, sans-serif;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.button-container {
    position: sticky;
    bottom: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.1s;
}

.btn:hover {
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: #5368e4;
    color: white;
}

.btn-primary:hover {
    background-color: #4055d0;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #5368e4;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #3f51d4;
    text-decoration: underline;
}
