:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #f72585;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

/* Reset margins and padding */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    text-align: left;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.template-container {
    max-width: 600px;
    margin: auto;
}

.template-image {
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
}

.logo-upload, .text-upload, .email-provider-options, .email-rows {
    display: none;
}

.file-count {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.thank-you-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    padding-top: 100px;
    z-index: 9999;
}

.firework {
    animation: explode 1s ease-out;
    width: 10px;
    height: 10px;
    background: yellow;
    border-radius: 50%;
    position: absolute;
}

@keyframes explode {
    0% { transform: scale(0.1); opacity: 1; }
    50% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

.submit-buttons {
    margin-bottom: 100px;
}

/* Welcome section styles */
.welcome-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Template card styles */
.template-card {
    transition: all 0.3s ease;
    margin-bottom: 25px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Button styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

/* Card header styles */
.card-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

/* Footer styles */
.footer {
    background-color: #212529;
    padding: 2rem 0;
    margin-top: 4rem;
    width: 100%;
    max-width: 100%;
}

/* Template badge styles */
.template-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.8rem;
}

/* Template actions styles */
.template-actions {
    display: flex;
    gap: 0.5rem;
}

.template-actions .btn {
    flex: 1;
    padding: 0.6rem 0;
    border-radius: 5px;
    font-weight: 600;
}