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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

h1 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 2em;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.9em;
}

.section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

h2 {
    color: #444;
    margin-bottom: 15px;
    font-size: 1.3em;
}

h3 {
    color: #555;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* File input */
input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px dashed #667eea;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

input[type="file"]:hover {
    border-color: #764ba2;
    background: #f0f0ff;
}

/* Text inputs */
input[type="date"],
input[type="time"],
input[type="text"],
input[type="number"] {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    margin: 5px 10px 5px 0;
    transition: border-color 0.3s;
}

input[type="date"]:focus,
input[type="time"]:focus,
input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

input[type="number"],
input[type="text"] {
    width: 400px;
    max-width: 100%;
}

label {
    display: inline-block;
    font-weight: 600;
    color: #555;
    margin-right: 10px;
}

/* Help text */
.help-text {
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
    font-style: italic;
}

.help-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.help-text a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Info box */
.info-box {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    color: #555;
    min-height: 20px;
}

/* Status box */
.status-box {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    min-height: 20px;
    font-weight: 500;
}

.status-box.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-box.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-box.processing {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Button */
.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.primary-btn:active:not(:disabled) {
    transform: translateY(0);
}

.primary-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Photo list display */
.photo-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    margin-top: 15px;
    margin-bottom: 10px;
}

.photo-count-label {
    font-weight: 600;
    color: #555;
}

.photo-count {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9em;
}

.photo-list {
    background: white;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.photo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.photo-item:last-child {
    border-bottom: none;
}

.photo-name {
    color: #333;
    flex: 1;
    word-break: break-word;
}

.photo-size {
    color: #888;
    font-size: 0.85em;
    margin-left: 10px;
    flex-shrink: 0;
}

/* Progress bar */
.progress-container {
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background-color: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: #555;
    font-size: 0.9em;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.5em;
    }

    input[type="number"] {
        width: 100%;
        margin-bottom: 10px;
    }
}

