/* Add footer styles at the beginning */
.site-footer {
    text-align: center;
    padding: 20px;
    margin-top: 2rem;
    border-top: 1px solid #eee;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.site-footer small {
    font-size: 0.85rem;
}

.site-footer .copyright {
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 10px;
    width: 100%;
}

.site-footer a {
    color: #007bff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f0f2f5;
    padding: 2rem;
    min-height: 100vh;
    overflow-x: auto;
    width: 100%;
}

.container {
    max-width: none;
    padding: 0 1rem;
    margin: 0 auto;
    overflow-x: auto;
    width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.main-content {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: fit-content;
    overflow-x: auto;
}

.form-section, .preview-section {
    flex: 0 0 auto;
    width: 400px;
    min-width: 300px;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1),
                0 1px 8px rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.form-section:hover, .preview-section:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1),
                0 1px 8px rgba(0, 0, 0, 0.05);
}

h2 {
    margin-bottom: 1rem;
    color: #444;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

textarea {
    height: 100px;
    resize: vertical;
}

button {
    background-color: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

/* Business Card Styles */
.card-container {
    width: 1050px;
    height: 600px;
    margin: 0 auto 1.5rem auto;
    padding: 0;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

.business-card {
    width: 1050px;
    height: 600px;
    padding: 86px 86px 96px 106px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    border-radius: 0;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transform: none;
}

.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    width: 100%;
}

.card-main-info {
    flex: 1;
    margin-right: 60px;
}

.card-name {
    font-size: 56px;
    margin-bottom: 12px;
    color: inherit;
    font-weight: bold;
    text-shadow: none;
    -webkit-text-stroke: 0;
    text-stroke: 0;
    line-height: 1.2;
}

.card-title {
    font-size: 40px;
    color: inherit;
    opacity: 0.9;
    margin-bottom: 8px;
    text-shadow: none;
    line-height: 1.2;
}

.card-business-unit {
    font-size: 24px;
    color: inherit;
    opacity: 0.8;
    margin-bottom: 12px;
    font-style: italic;
    text-shadow: none;
    line-height: 1.3;
}

.card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0;
    padding-bottom: 15px;
    width: 100%;
}

.card-details {
    flex: 1;
    margin-right: 40px;
    margin-bottom: 0;
    padding-bottom: 0;
}

.card-details p {
    font-size: 36px;
    color: inherit;
    opacity: 0.9;
    margin-bottom: 12px;
    line-height: 1.4;
    text-shadow: none;
}

.card-details p:last-child {
    margin-bottom: 0;
}

.company-logo {
    width: 130px;
    height: 130px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 20px;
    align-self: flex-end;
}

.company-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.qr-code {
    width: 120px;
    height: 120px;
    background: white;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.1);
}

.card-footer {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

.card-website {
    font-size: 24px;
    color: inherit;
    opacity: 0.9;
    line-height: 1.2;
    text-shadow: none;
    word-break: break-all;
    max-width: 100%;
}

/* Remove any text decorations and outlines */
.business-card * {
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Media query for preview only */
@media screen and (max-width: 1600px) {
    .container {
        padding: 0;
    }

    .main-content {
        padding: 1rem;
        justify-content: flex-start;
    }
}

/* Color Palette Styles */
.color-palette-section {
    width: 100%;
    max-width: 1050px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.color-palette-section h3 {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.color-palettes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.color-palette {
    width: 100%;
    aspect-ratio: 1.5/1;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.color-palette:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.color-palette.active {
    border: 3px solid #007bff;
    transform: scale(1.05);
}

.white-palette {
    background: white !important;
    border: 1px solid #dee2e6;
}

.custom-color-picker {
    width: 100%;
    max-width: 1050px;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.color-inputs {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.color-input {
    flex: 1;
}

.color-input label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.color-input input[type="color"] {
    width: 100%;
    height: 40px;
    padding: 2px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .business-card {
        margin-top: 2rem;
    }
    
    .card-container {
        padding: 0.5rem;
    }

    .business-card {
        padding: 1.5rem;
    }

    .card-content {
        gap: 1rem;
    }

    .card-header {
        flex-direction: column;
    }

    .card-main-info {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .card-name {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-business-unit {
        font-size: 0.9rem;
    }

    .card-body {
        flex-direction: column;
    }

    .card-details {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .card-details p {
        font-size: 1rem;
    }

    .company-logo {
        width: 100px;
        height: 100px;
        align-self: flex-end;
    }

    .qr-code {
        width: 120px;
        height: 120px;
        align-self: flex-end;
    }

    .card-website {
        font-size: 1rem;
    }
}

/* Ensure form section maintains reasonable size */
.form-section {
    min-width: 300px;
    max-width: 500px;
    flex-shrink: 0;
}

/* Adjust button group and color palette section to fit */
.button-group {
    width: 100%;
    max-width: 1050px;
    margin: 1.5rem 0 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-btn {
    width: 200px;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    margin-top: 0;
    height: 45px;
    line-height: normal;
}

.fedex-btn {
    background-color: #4A148C;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    width: 200px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    height: 45px;
}

.fedex-btn:hover {
    background-color: #311B92;
}

.disclaimer {
    display: block;
    text-align: right;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Ensure proper spacing for all sections */
.preview-section > * {
    width: 100%;
}

.preview-section {
    flex: 0 0 auto;
    width: 1150px;
    min-width: 1150px;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1),
                0 1px 8px rgba(0, 0, 0, 0.05);
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-section h2 {
    width: 100%;
    text-align: left;
    margin-bottom: 1.5rem;
}

/* Add styles for white background */
.business-card[style*="ffffff"] {
    color: #333;
}

.business-card[style*="ffffff"] .card-title,
.business-card[style*="ffffff"] .card-business-unit,
.business-card[style*="ffffff"] .card-details p,
.business-card[style*="ffffff"] .card-website {
    opacity: 1;
}

.business-card[style*="ffffff"] .card-footer {
    border-top-color: rgba(0, 0, 0, 0.1);
} 