/* Business Card Generator Styles */
.hero-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0 3rem; /* Increased top padding to avoid navbar overlap */
    text-align: center;
    margin-top: 60px; /* Add margin to account for fixed navbar */
}

.hero-small .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-small .hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.business-card-section {
    padding: 3rem 0; /* Increased padding */
    background: #f8fafc;
}

.bc-generator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem; /* Increased gap */
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.bc-input-panel,
.bc-preview-panel {
    background: white;
    border-radius: 16px; /* Increased border radius */
    padding: 2.5rem; /* Increased padding */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* Improved shadow */
    height: fit-content;
}

.panel-header {
    margin-bottom: 2.5rem; /* Increased margin */
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.panel-header h2 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.panel-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    opacity: 0.8;
}

/* Form Styles */
.bc-form .form-group {
    margin-bottom: 1.75rem; /* Increased margin */
}

.bc-form label {
    display: block;
    margin-bottom: 0.75rem; /* Increased margin */
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.bc-form input,
.bc-form textarea {
    width: 100%;
    padding: 1rem; /* Increased padding */
    border: 2px solid #e2e8f0;
    border-radius: 10px; /* Increased border radius */
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.bc-form input:focus,
.bc-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem; /* Increased gap */
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem; /* Increased margin */
}

.template-section,
.color-section {
    margin-top: 2.5rem; /* Increased margin */
    padding-top: 2.5rem; /* Increased padding */
    border-top: 2px solid #f1f5f9;
}

.template-section h3,
.color-section h3 {
    margin-bottom: 1.5rem; /* Increased margin */
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem; /* Increased gap */
}

.template-option {
    cursor: pointer;
    text-align: center;
    padding: 1.25rem; /* Increased padding */
    border: 2px solid #e2e8f0;
    border-radius: 12px; /* Increased border radius */
    transition: all 0.3s ease;
    background: white;
}

.template-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.template-option.active {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.template-preview {
    width: 70px; /* Increased size */
    height: 42px; /* Increased size */
    margin: 0 auto 0.75rem; /* Increased margin */
    border-radius: 6px; /* Increased border radius */
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.template-modern { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.template-classic { background: linear-gradient(135deg, #f7f8fc 0%, #ffffff 100%); border: 1px solid #ddd; }
.template-creative { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.template-minimal { background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%); border: 1px solid #eee; }
.template-professional { background: linear-gradient(135deg, #434343 0%, #000000 100%); }
.template-elegant { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }

.template-option span {
    font-size: 0.85rem; /* Increased font size */
    color: var(--text-secondary);
    font-weight: 600;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem; /* Increased gap */
    justify-items: center;
}

.color-option {
    width: 50px; /* Increased size */
    height: 50px; /* Increased size */
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-option:hover {
    transform: scale(1.15); /* Increased scale */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.color-option.active {
    border-color: var(--text-primary);
    transform: scale(1.2); /* Increased scale */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Preview Styles */
.preview-container {
    text-align: center;
    margin-bottom: 2.5rem; /* Increased margin */
    padding: 2rem; /* Added padding */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
}

.business-card {
    width: 380px; /* Increased size */
    height: 217px; /* Increased size maintaining aspect ratio */
    margin: 0 auto;
    border-radius: 16px; /* Increased border radius */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); /* Improved shadow */
    overflow: hidden;
    transform: perspective(1000px) rotateX(8deg); /* Increased rotation */
    transition: all 0.4s ease;
    background: white;
    position: relative;
}

.business-card:hover {
    transform: perspective(1000px) rotateX(0deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    scale: 1.02; /* Added slight scale on hover */
}

/* Business Card Templates - Improved alignment */
.bc-modern,
.bc-classic,
.bc-creative,
.bc-minimal,
.bc-professional,
.bc-elegant {
    width: 100%;
    height: 100%;
    padding: 1.75rem; /* Increased padding */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.bc-name {
    font-size: 1.5rem; /* Increased font size */
    font-weight: 700;
    margin-bottom: 0.4rem; /* Increased margin */
    line-height: 1.2;
}

.bc-title {
    font-size: 1.1rem; /* Increased font size */
    margin-bottom: 1.2rem; /* Increased margin */
    opacity: 0.9;
    line-height: 1.3;
}

.bc-company {
    font-size: 1.2rem; /* Increased font size */
    font-weight: 600;
    margin-bottom: 1.2rem; /* Increased margin */
    line-height: 1.3;
}

.bc-contact {
    font-size: 0.85rem; /* Increased font size */
    line-height: 1.5; /* Increased line height */
}

.bc-contact div {
    margin-bottom: 0.3rem; /* Increased margin */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Improved template-specific alignments */
.bc-classic {
    text-align: center;
    justify-content: center;
    align-items: center;
}

.bc-minimal {
    border-left: 6px solid #667eea; /* Increased border width */
    padding-left: 2rem; /* Increased padding */
}

.bc-professional {
    padding: 2rem; /* Increased padding */
}

.bc-professional > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.bc-elegant {
    text-align: center;
    justify-content: center;
    align-items: center;
}

.preview-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Increased gap */
    margin-bottom: 2.5rem; /* Increased margin */
}

.preview-actions button {
    padding: 0.75rem 1.5rem; /* Increased padding */
    font-weight: 600;
    border-radius: 10px; /* Increased border radius */
    transition: all 0.3s ease;
}

.preview-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.print-info {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 2rem; /* Increased padding */
    border-radius: 12px; /* Increased border radius */
    margin-top: 2.5rem; /* Increased margin */
    border-left: 4px solid var(--primary-color);
}

.print-info h4 {
    margin-bottom: 1.5rem; /* Increased margin */
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.print-info ul {
    list-style: none;
    padding: 0;
}

.print-info li {
    padding: 0.5rem 0; /* Increased padding */
    color: var(--text-secondary);
    font-size: 0.95rem; /* Increased font size */
    line-height: 1.5;
}

.print-info li:before {
    content: "✓ ";
    color: #10b981;
    font-weight: bold;
    margin-right: 0.75rem; /* Increased margin */
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-small {
        padding: 5rem 0 2rem;
        margin-top: 70px;
    }
    
    .hero-small .hero-title {
        font-size: 2rem;
    }
    
    .bc-generator-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .business-card {
        width: 300px;
        height: 171px;
        transform: none;
    }
    
    .business-card:hover {
        transform: none;
        scale: 1;
    }
    
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .bc-input-panel,
    .bc-preview-panel {
        padding: 1.5rem;
    }
    
    .preview-container {
        padding: 1rem;
    }
    
    .bc-modern,
    .bc-classic,
    .bc-creative,
    .bc-minimal,
    .bc-professional,
    .bc-elegant {
        padding: 1.25rem;
    }
    
    .bc-name {
        font-size: 1.2rem;
    }
    
    .bc-title {
        font-size: 0.9rem;
    }
    
    .bc-company {
        font-size: 1rem;
    }
    
    .bc-contact {
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    .business-card,
    .business-card * {
        visibility: visible;
    }
    
    .business-card {
        position: absolute;
        left: 0;
        top: 0;
        width: 3.5in;
        height: 2in;
        transform: none;
        box-shadow: none;
        margin: 0;
        border-radius: 0;
    }
}
