
.upload-section {
    border: 3px dashed #667eea;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.upload-section:hover {
    border-color: #764ba2;
    background: #f8f9ff;
}

.upload-section input[type="file"] {
    display: none;
}

.upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.crop-container {
    display: none;
    margin-top: 30px;
}

.img-container {
    max-height: 500px;
    margin-bottom: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
}

.img-container img {
    max-width: 100%;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.ratio-select {
    padding: 10px 20px;
    border: 2px solid #667eea;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    background: white;
    transition: all 0.3s;
}

.ratio-select:hover {
    background: #667eea;
    color: white;
}

.action-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-crop {
    background: #10b981;
    color: white;
}

.btn-crop:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-reset {
    background: #ef4444;
    color: white;
}

.btn-reset:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.formats-section {
    margin: 20px 0;
    padding: 20px;
    background: #f0f4ff;
    border-radius: 10px;
}

.formats-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.format-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.format-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
}

.format-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.format-details {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

.preview-section {
    display: none;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 10px;
}

.preview-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.preview-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-item h4 {
    margin-bottom: 10px;
    color: #667eea;
    font-size: 14px;
}

.preview-item img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 8px;
}

.preview-item .info {
    font-size: 12px;
    color: #6b7280;
}

.code-section {
    background: #1f2937;
    color: #e5e7eb;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    overflow-x: auto;
}

.code-section h4 {
    color: #10b981;
    margin-bottom: 10px;
}

.code-section code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre;
}

.copy-btn {
    background: #10b981;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px;
}

.copy-btn:hover {
    background: #059669;
}

.message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    display: none;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}
