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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

.header {
    background-color: #1b2150;
    color: white;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header h1 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.header span {
    font-size: 13px;
    color: #c0c4d8;
}

.container {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 24px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
}

.tab {
    padding: 10px 24px;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
}

.tab:first-child { border-radius: 6px 0 0 6px; }
.tab:last-child { border-radius: 0 6px 6px 0; }

.tab.active {
    background: #1b2150;
    color: white;
    border-color: #1b2150;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.card h2 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #1b2150;
}

/* Form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    border-color: #1b2150;
}

/* Photo upload */
.photo-upload {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 8px;
}

.photo-dropzone {
    width: 150px;
    height: 150px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.photo-dropzone:hover {
    border-color: #1b2150;
}

.photo-dropzone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-dropzone .placeholder {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 8px;
}

.crop-container {
    position: relative;
    max-width: 300px;
    max-height: 300px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: none;
}

.crop-container img {
    max-width: 300px;
    display: block;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: #1b2150;
    color: white;
}

.btn-primary:hover {
    background: #2a3470;
}

.btn-secondary {
    background: #e8e8e8;
    color: #333;
}

.btn-secondary:hover {
    background: #ddd;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-group {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* Preview */
.preview-area {
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 24px;
    display: flex;
    justify-content: center;
    min-height: 180px;
    align-items: center;
}

.preview-area iframe {
    border: none;
    width: 504px;
    height: 135px;
}

/* Batch */
.csv-upload {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.csv-upload:hover {
    border-color: #1b2150;
}

.csv-upload input {
    display: none;
}

.batch-results {
    margin-top: 16px;
}

.batch-results table {
    width: 100%;
    border-collapse: collapse;
}

.batch-results th,
.batch-results td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.batch-results th {
    font-weight: 600;
    color: #555;
    background: #f8f8f8;
}

/* Status messages */
.status {
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 12px;
    display: none;
}

.status.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Tab panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Format selector */
.format-selector {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.format-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

.format-option input[type="radio"] {
    accent-color: #1b2150;
}

/* Sliders */
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.slider {
    flex: 1;
    height: 4px;
    accent-color: #1b2150;
    cursor: pointer;
}

/* Checkbox */
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    color: #555;
}

.checkbox-option input[type="checkbox"] {
    accent-color: #1b2150;
}

/* Download link */
a.download-link {
    color: #1b2150;
    text-decoration: none;
    font-weight: 500;
}

a.download-link:hover {
    text-decoration: underline;
}
