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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, lightsteelblue 0%, #1a73e8 100%);
    /* background: linear-gradient(135deg, #1a73e8 0%, #764ba2 100%); */
    min-height: 100vh;
    display: flex;
    /* justify-content: center;
    align-items: center; */
    /* padding: 20px; */
}

.wrapper {
    display: flex;
    align-items: center;
    padding: 20px;
    flex-grow: 1;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: column;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin:10px;
    min-width: 300px;
    max-width: 600px;
    width: 100%;
}

.container h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.upload-area {
    border: 3px dashed #1a73e8;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.upload-icon {
    font-size: 48px;
    color: #1a73e8;
    margin-bottom: 15px;
}

input[type="file"] {
    display: none;
}

.file-label {
    color: #1a73e8;
    font-weight: 600;
    cursor: pointer;
}

.format-selector {
    margin-bottom: 25px;
}

.format-selector label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.format-btn {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #666;
}

.format-btn:hover {
    border-color: #1a73e8;
    color: #1a73e8;
}

.format-btn.active {
    background: #1a73e8;
    border-color: #1a73e8;
    color: white;
}

input[type="radio"] {
    /* display: none; */
}

.submit-btn {
    width: 100%;
    padding: 15px;
    /* background: linear-gradient(135deg, lightsteelblue 0%, #1a73e8 100%); */
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    /* transition: transform 0.5s ease; */
  background: linear-gradient(45deg, #1a73e8 0%, #2a3770 100%);
  background-size: 200% 200%;
  background-position: left top;
  transition: background-position 0.6s ease;}

.submit-btn:hover {
    /* transform: translateY(-2px); */
    background-position: right bottom;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

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

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

.error code {
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #d63384;
}

.error strong {
    display: block;
    margin: 5px 0;
}

.result {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 10px;
    text-align: center;
}

.result img {
    max-width: 100%;
    border-radius: 10px;
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.download-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
}

.file-name {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}
