/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #1a1a1a; /* Dark charcoal background */
}

.container {
    display: flex;
    height: 100vh;
}

/* Left Section */
.left-section {
    width: 50%;
    display: flex;
    flex-direction: column;
    background-color: #222222; /* Slightly lighter dark tone */
    border-right: 3px solid #4a1c1c; /* Dark reddish border for contrast */
}

.card-preview {
    height: 80%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2a2a2a; /* Lighter dark tone for contrast */
}

.card-display {
    display: flex;
    gap: 20px;
}

.card-vector, .card-pixel {
    width: 200px;
    height: 300px;
    background-color: #333333; /* Lighter dark tone for cards */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #4a1c1c; /* Dark reddish border */
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.download-links {
    height: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background-color: #2a2a2a;
    border-top: 2px solid #4a1c1c; /* Dark reddish separator */
}

.download-btn {
    padding: 10px 20px;
    background-color: #333333;
    color: #d1d1d1; /* Light gray text for readability */
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid #4a1c1c; /* Dark reddish border */
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
}

.download-btn:hover {
    background-color: #4a1c1c; /* Dark red on hover */
    border-color: #6b2d2d; /* Lighter dark red */
    transform: scale(1.03);
}

.download-btn:focus {
    border-color: #a32c2c; /* Bright dark red for focus */
    outline: 3px solid #a32c2c;
    outline-offset: 2px;
}

/* Right Section */
.right-section {
    width: 50%;
    padding: 20px;
    background-color: #222222; /* Consistent dark tone */
}

.editor {
    max-width: 600px;
    margin: 0 auto;
}

.editor h2 {
    margin-bottom: 20px;
    color: #d1d1d1; /* Light gray for readability */
    font-weight: 600;
}

.template-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.template-selector label {
    margin-right: 10px;
    color: #d1d1d1;
    font-weight: 500;
}

.template-selector select {
    padding: 8px;
    border: 2px solid #4a1c1c; /* Dark reddish border */
    border-radius: 5px;
    background-color: #3c3c3c; /* Lighter dark tone for inputs */
    color: #d1d1d1; /* Light gray text */
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.template-selector select:focus {
    border-color: #a32c2c; /* Bright dark red for focus */
    box-shadow: 0 0 0 3px rgba(163, 44, 44, 0.3); /* Subtle red glow */
    outline: none;
}

.properties {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.property-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.property-field label {
    color: #d1d1d1;
    font-size: 14px;
    font-weight: 500;
}

.property-field input,
.property-field textarea,
.property-field select {
    padding: 8px;
    border: 2px solid #4a1c1c; /* Dark reddish border */
    border-radius: 5px;
    background-color: #3c3c3c; /* Lighter dark tone for readability */
    color: #d1d1d1; /* Light gray text */
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.property-field textarea {
    resize: vertical;
}

.property-field select[multiple] {
    height: 100px;
}

.property-field input:focus,
.property-field textarea:focus,
.property-field select:focus {
    border-color: #a32c2c; /* Bright dark red for focus */
    box-shadow: 0 0 0 3px rgba(163, 44, 44, 0.3); /* Subtle red glow */
    outline: none;
}