@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bc-primary: #6366f1;
    --bc-primary-dark: #4f46e5;
    --bc-text: #0f172a;
    --bc-muted: #64748b;
    --bc-border: #cbd5e1;
    --bc-background: #0f172a;
    --bc-card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bc-background);
    color: var(--bc-text);
    min-height: 100vh;
    padding: 24px;
    -webkit-font-smoothing: antialiased;
}

.bc-container {
    max-width: 1300px;
    margin: 0 auto;
}

.bc-header {
    background: var(--bc-card-bg);
    padding: 18px 24px;
    border-radius: 16px;
    border: 1px solid var(--bc-border);
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-left .back-link {
    color: var(--bc-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 4px;
}

.header-left h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--bc-text);
}

.bc-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.bc-form-section {
    background: var(--bc-card-bg);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--bc-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bc-form-section h2 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bc-border);
}

.form-block {
    margin-bottom: 20px;
}

.form-block h3 {
    font-size: 12px;
    font-weight: 700;
    color: var(--bc-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* DİZAYN VƏ TEMA DÜYMƏLƏRİ */
.theme-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.theme-btn {
    background: #f1f5f9;
    border: 1px solid var(--bc-border);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    color: var(--bc-text);
    transition: all 0.2s;
}

.theme-btn:hover {
    background: #e2e8f0;
    border-color: var(--bc-primary);
}

.inline-color-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-color-picker input[type="color"] {
    width: 40px;
    height: 32px;
    border: 1px solid var(--bc-border);
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--bc-text);
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--bc-border);
    border-radius: 8px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--bc-primary);
    background: #ffffff;
}

.print-note {
    font-size: 11px;
    color: var(--bc-muted);
    margin-bottom: 10px;
}

.download-box {
    background: #f1f5f9;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--bc-border);
    margin-top: 24px;
}

.btn-download {
    background-color: var(--bc-primary);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, transform 0.1s;
}

.btn-download:hover {
    background-color: var(--bc-primary-dark);
    transform: translateY(-1px);
}

/* VİZİTKA PREVYUSU (85mm x 55mm nisbəti) */
.bc-preview-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    position: sticky;
    top: 24px;
}

.bc-card-preview {
    width: 425px;
    height: 275px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 14px;
    padding: 30px;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.3s ease;
}

.card-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.c-company {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #818cf8;
    transition: color 0.3s;
}

.c-tag {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    color: #ffffff;
    font-weight: bold;
}

.card-body-middle h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.c-title {
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 500;
}

.card-footer-bottom {
    font-size: 11px;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 10px;
}

/* MOBİL VƏ TABLET ÜÇÜN UYĞUNLAŞMA */
@media (max-width: 950px) {
    .bc-workspace {
        grid-template-columns: 1fr;
    }
    .bc-card-preview {
        width: 100%;
        max-width: 425px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .bc-card-preview {
        height: 240px;
        padding: 20px;
    }
    .card-body-middle h2 {
        font-size: 18px;
    }
}
@media print {
    body {
        background: none !important;
        padding: 0 !important;
    }
    .bc-header, .bc-form-section {
        display: none !important;
    }
    .bc-preview-section {
        position: static !important;
    }
    .bc-card-preview {
        box-shadow: none !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}