body {
    background: #ffffff;
    color: #333333;
}

.container {
    max-width: 100vw;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.head {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #1a73e8, #0d47a1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: #666666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.config-panel,
.preview-panel {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.panel-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
}

.panel-title i {
    color: #1a73e8;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a73e8;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    max-width: -webkit-fill-available;
    max-width: -moz-available;
    padding: 12px 15px 12px 45px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333333;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.error-message {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.dimensions {
    display: flex;
    gap: 15px;
}

.dimensions .form-group {
    flex: 1;
}

.preview-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #e9ecef;
}

.logo-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.logo-image {
    width: 120px;
    height: 75px;
    border-radius: 8px;
    object-fit: cover;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    border: 2px dashed #ddd;
    overflow: hidden;
}

.logo-image img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
}

.btn {
    background: linear-gradient(to right, #1a73e8, #0d47a1);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-success {
    background: linear-gradient(to right, #28a745, #1e7e34);
}

.btn-success:hover {
    background: linear-gradient(to right, #218838, #1c7430);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.code-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
    overflow: auto;
    max-height: 300px;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.code-tabs {
    display: flex;
    gap: 10px;
}

.code-tab {
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666666;
    border: 1px solid #e9ecef;
}

.code-tab.active {
    background: rgba(26, 115, 232, 0.1);
    color: #1a73e8;
    border-color: rgba(26, 115, 232, 0.2);
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #2c3e50;
}

.preview-area {
    height: 300px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.preview-area iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.preview-placeholder {
    text-align: center;
    color: #999999;
}

.preview-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}


.logo-url-info {
    font-size: 0.85rem;
    color: #666666;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.button-group .btn {
    flex: 1;
}

.test-window-info {
    font-size: 0.85rem;
    color: #666666;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-align: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .dimensions {
        flex-direction: column;
        gap: 0;
    }

    .button-group {
        flex-direction: column;
    }
}