:root {
    --primary-color: #4A90E2;
    --secondary-color: #82B1FF;
    --success-color: #66BB6A;
    --background-color: rgba(255, 255, 255, 0.1);
    --card-background: rgba(255, 255, 255, 0.2);
    --text-primary: #2C3E50;
    --text-secondary: #95A5A6;
    --shadow-color: rgba(149, 157, 165, 0.1);
    --border-radius: 15px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
}

body {
    background-image: url('abstract-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

.container {
    position: relative;
    z-index: 1;
}

/* Glassmorphism Card */
.card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    color: #222;
    margin-left: auto;
    margin-right: auto;
}

.card-body, .card-header {
    background: transparent;
    color: #222;
}

.card-header {
    background: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 0 1.5rem 0;
}

.card-header h3 {
    color: #2C3E50;
    font-weight: 700;
    font-size: 1.75rem;
    text-shadow: none;
}

.card-header p {
    color: #4A5568;
}

/* Stepper Styling */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
    padding: 0 1rem;
}

.stepper-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #E2E8F0;
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 10px;
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 2;
}

.step-counter {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 700;
    color: #2C3E50;
    border: 3px solid #E2E8F0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.step-counter::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid transparent;
    top: -7px;
    left: -7px;
    transition: all 0.3s ease;
}

.step-counter i {
    font-size: 1.25rem;
    color: inherit;
}

.step-name {
    font-size: 1rem;
    color: #2C3E50;
    margin-top: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: none;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Active State */
.stepper-item.active .step-counter {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
}

.stepper-item.active .step-counter::after {
    border-color: rgba(74, 144, 226, 0.3);
    animation: pulse 2s infinite;
}

.stepper-item.active .step-name {
    color: #4A90E2;
    font-weight: 700;
    background: #EBF5FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(74, 144, 226, 0.1);
}

/* Completed State */
.stepper-item.completed .step-counter {
    background: #48BB78;
    color: white;
    border-color: #48BB78;
}

.stepper-item.completed .step-counter::after {
    border-color: rgba(72, 187, 120, 0.3);
}

.stepper-item.completed .step-name {
    color: #48BB78;
    background: #F0FFF4;
}

.stepper-item.completed + .stepper-item.completed::before,
.stepper-item.completed + .stepper-item.active::before {
    background: #48BB78;
}

/* Hover Effects */
.step-counter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .step-counter {
        width: 40px;
        height: 40px;
    }

    .step-counter i {
        font-size: 1rem;
    }

    .step-name {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .stepper-wrapper::before {
        height: 2px;
    }
}

/* Form Controls */
.form-label {
    color: #2C3E50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-shadow: none;
}

.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #2C3E50;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-weight: 500;
}

.form-control:focus {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(74, 144, 226, 0.5);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.3);
    color: #2C3E50;
}

.form-control::placeholder {
    color: #A0AEC0;
    font-weight: 400;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-primary {
    background: rgba(74, 144, 226, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    background: rgba(74, 144, 226, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-success {
    background: rgba(102, 187, 106, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(102, 187, 106, 0.3);
}

.btn-success:hover {
    background: rgba(102, 187, 106, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 187, 106, 0.4);
}

/* Step Animation */
.step {
    min-height: 200px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
    transform: translateX(0);
}

/* Form Groups */
.mb-3 {
    margin-bottom: 1.5rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        padding: 1.5rem;
        margin: 1rem;
    }

    .stepper-wrapper {
        margin: 1.5rem 0;
    }

    .step-counter {
        width: 40px;
        height: 40px;
    }

    .step-name {
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
    }
}

/* Error States */
.form-control.is-invalid {
    border-color: rgba(220, 53, 69, 0.8);
    background-image: none;
}

.form-control.is-invalid:focus {
    border-color: rgba(220, 53, 69, 0.9);
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.3);
}

.invalid-feedback {
    display: none;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* Success States */
.form-control.is-valid {
    border-color: rgba(102, 187, 106, 0.8);
    background-image: none;
}

.form-control.is-valid:focus {
    border-color: rgba(102, 187, 106, 0.9);
    box-shadow: 0 0 15px rgba(102, 187, 106, 0.3);
}

/* Alert Styling */
.alert {
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.alert-success {
    background-color: #F0FFF4;
    color: #2F855A;
}

.alert-warning {
    background-color: #FFFBEB;
    color: #C05621;
}

.alert i {
    font-size: 1.25rem;
    vertical-align: middle;
}

/* Eğitim Durumu Kartı */
.status-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.status-icon {
    font-size: 2.5rem;
    color: #4A90E2;
    margin-bottom: 1rem;
}

.status-title {
    color: #2C3E50;
    font-weight: 600;
    margin-bottom: 0;
}

/* Eğitim Kartları */
.course-card {
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.course-info h6 {
    color: #2C3E50;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.course-info p {
    color: #718096;
    font-size: 0.875rem;
}

/* Sertifika Şablonları */
.certificate-template-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.certificate-template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.template-preview {
    position: relative;
    padding-top: 70%; /* 7:10 aspect ratio */
    overflow: hidden;
}

.template-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.template-select {
    padding: 0.75rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.btn-check:checked + .btn-outline-primary {
    background-color: #4A90E2;
    border-color: #4A90E2;
    color: #fff;
}

/* Sertifika Önizleme */
.preview-container {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.preview-loading {
    text-align: center;
    color: #718096;
}

.preview-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.preview-content {
    width: 100%;
    height: 100%;
}

/* Animasyonlar */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
} 

/* Sertifika Şablonları - Özel Stiller */
.certificate-template {
    width: 1000px;
    height: 700px;
    padding: 50px;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

/* Modern Şablon */
.certificate-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #4A90E2;
    border-radius: 20px;
}

.certificate-modern .header {
    text-align: center;
    margin-bottom: 40px;
}

.certificate-modern .logo {
    width: 150px;
    margin-bottom: 20px;
}

.certificate-modern .title {
    font-size: 48px;
    color: #2C3E50;
    margin-bottom: 20px;
    font-weight: 700;
}

.certificate-modern .subtitle {
    font-size: 24px;
    color: #4A90E2;
    margin-bottom: 40px;
}

.certificate-modern .content {
    text-align: center;
    margin: 40px 0;
}

.certificate-modern .recipient {
    font-size: 36px;
    color: #2C3E50;
    border-bottom: 2px solid #4A90E2;
    display: inline-block;
    padding: 0 20px 10px;
    margin-bottom: 30px;
}

.certificate-modern .description {
    font-size: 20px;
    color: #5D6D7E;
    line-height: 1.6;
    margin-bottom: 40px;
}

.certificate-modern .footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 60px;
}

.certificate-modern .signature {
    text-align: center;
    flex: 1;
}

.certificate-modern .signature img {
    width: 150px;
    margin-bottom: 10px;
}

.certificate-modern .signature-name {
    font-size: 18px;
    color: #2C3E50;
    font-weight: 600;
}

.certificate-modern .signature-title {
    font-size: 14px;
    color: #5D6D7E;
}

.certificate-modern .date {
    font-size: 18px;
    color: #2C3E50;
    text-align: right;
}

/* Klasik Şablon */
.certificate-classic {
    background: #fff9f0;
    border: 15px solid #c4a484;
    font-family: 'Cormorant Garamond', serif;
}

.certificate-classic .border-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #8b7355;
    margin: 20px;
}

.certificate-classic .content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 50px;
}

.certificate-classic .header {
    margin-bottom: 60px;
}

.certificate-classic .title {
    font-size: 60px;
    color: #4a3c2c;
    font-weight: 700;
    margin-bottom: 20px;
}

.certificate-classic .recipient {
    font-size: 42px;
    color: #6b5741;
    margin: 40px 0;
}

.certificate-classic .description {
    font-size: 24px;
    color: #6b5741;
    line-height: 1.6;
    margin: 40px 0;
}

/* Minimalist Şablon */
.certificate-minimal {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

.certificate-minimal .accent-line {
    position: absolute;
    top: 0;
    left: 50px;
    width: 3px;
    height: 100%;
    background: #4A90E2;
}

.certificate-minimal .content {
    margin-left: 100px;
}

.certificate-minimal .title {
    font-size: 42px;
    color: #2C3E50;
    margin-bottom: 40px;
    font-weight: 300;
}

.certificate-minimal .recipient {
    font-size: 36px;
    color: #4A90E2;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Teknoloji Temalı Şablon */
.certificate-tech {
    background: #1a1a1a;
    color: #ffffff;
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.certificate-tech .grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.certificate-tech .content {
    position: relative;
    z-index: 1;
}

.certificate-tech .title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 48px;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    margin-bottom: 40px;
}

/* Sanat Temalı Şablon */
.certificate-artistic {
    background: #ffffff;
}

.certificate-artistic .watercolor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 182, 193, 0.2),
        rgba(173, 216, 230, 0.2),
        rgba(144, 238, 144, 0.2));
    opacity: 0.4;
}

.certificate-artistic .content {
    position: relative;
    z-index: 1;
    font-family: 'Playfair Display', serif;
} 

/* Sertifika Önizleme Stilleri */
.template-preview {
    position: relative;
    padding-top: 141.4%; /* A4 oranı (1:√2) */
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background: #f8fafc;
}

.preview-scale {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1000px; /* Orijinal genişlik */
    height: 707px; /* A4 oranında yükseklik */
    transform: translate(-50%, -50%) scale(0.15); /* Merkeze hizala ve küçült */
    transform-origin: center center;
}

/* Şablon Kartları */
.certificate-template-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

/* Büyük Önizleme Konteyner */
.preview-container {
    position: relative;
    width: 100%;
    padding-top: 70.7%; /* A4 oranı */
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.preview-container .preview-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.preview-container .certificate-template {
    transform: scale(0.8);
    transform-origin: center center;
    width: 100%;
    height: 100%;
}

/* Sertifika Şablonları - Ortak Stiller */
.certificate-template {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Modern Şablon */
.certificate-modern.preview-scale {
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #4A90E2;
    border-radius: 10px;
}

.certificate-modern .header {
    text-align: center;
    margin-bottom: 20px;
}

.certificate-modern .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Klasik Şablon */
.certificate-classic.preview-scale {
    padding: 40px;
    background: #fff9f0;
    border: 8px solid #c4a484;
}

.certificate-classic .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Minimalist Şablon */
.certificate-minimal.preview-scale {
    padding: 40px 40px 40px 60px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

.certificate-minimal .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tech Şablon */
.certificate-tech.preview-scale {
    padding: 40px;
    background: #1a1a1a;
    color: #00ff00;
    border: 1px solid #00ff00;
    font-family: 'Courier New', monospace;
}

.certificate-tech .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Artistik Şablon */
.certificate-artistic.preview-scale {
    padding: 40px;
    background: #ffffff;
}

.certificate-artistic .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Önizleme İçin Metin Boyutları */
.preview-scale .title {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.preview-scale .recipient {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.preview-scale .description {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
}

/* Logo ve İmza Placeholder'ları */
.logo-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.signature-placeholder {
    width: 120px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    position: relative;
}

.signature-placeholder::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    .preview-scale {
        transform: translate(-50%, -50%) scale(0.12);
    }
    
    .preview-container {
        padding-top: 100%; /* Mobile'da daha kare görünüm */
    }
    
    .preview-container .certificate-template {
        transform: scale(0.6);
    }
}

/* Seçili Şablon Efekti */
.btn-check:checked + .btn-outline-primary {
    background-color: #4A90E2;
    border-color: #4A90E2;
    color: #fff;
}

.certificate-template-card:has(.btn-check:checked) {
    border: 2px solid #4A90E2;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.2);
} 

/* Sertifika Seçim Grid */
.certificate-templates .row {
    margin: -12px;
}

.certificate-templates .col-md-4 {
    padding: 12px;
}

/* Şablon Kartları */
.certificate-template-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 280px; /* Sabit yükseklik */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.certificate-template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Önizleme Alanı */
.template-preview {
    position: relative;
    height: 220px; /* Sabit yükseklik */
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #f8fafc;
    padding: 0; /* Padding'i kaldır */
}

/* Seçim Alanı */
.template-select {
    padding: 12px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    margin-top: auto; /* Alt kısma sabitle */
}

.template-select .btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
}

/* Preview Scale Düzenlemesi */
.preview-scale {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px; /* Orijinal genişlik */
    height: 565px; /* A4 oranında yükseklik */
    transform: translate(-50%, -50%) scale(0.25); /* Merkeze hizala ve küçült */
    transform-origin: center center;
}

/* Responsive Ayarlar */
@media (max-width: 1200px) {
    .certificate-template-card {
        height: 260px;
    }
    
    .template-preview {
        height: 200px;
    }
    
    .preview-scale {
        transform: translate(-50%, -50%) scale(0.22);
    }
}

@media (max-width: 992px) {
    .certificate-template-card {
        height: 240px;
    }
    
    .template-preview {
        height: 180px;
    }
    
    .preview-scale {
        transform: translate(-50%, -50%) scale(0.2);
    }
}

@media (max-width: 768px) {
    .certificate-template-card {
        height: 220px;
    }
    
    .template-preview {
        height: 160px;
    }
    
    .preview-scale {
        transform: translate(-50%, -50%) scale(0.18);
    }
    
    .template-select {
        padding: 8px;
    }
    
    .template-select .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Seçili Kart Efekti */
.certificate-template-card:has(.btn-check:checked) {
    border: 2px solid #4A90E2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.btn-check:checked + .btn-outline-primary {
    background-color: #4A90E2;
    border-color: #4A90E2;
    color: #fff;
}

/* Hover Efektleri */
.certificate-template-card:hover .template-preview {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.template-select .btn-outline-primary:hover {
    background-color: rgba(74, 144, 226, 0.1);
    color: #4A90E2;
    border-color: #4A90E2;
} 

/* Form görünürlüğü için ek stiller */
.form-control, .form-select, .form-control:focus, .form-select:focus {
    background: #fff !important;
    color: #222 !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
}

.form-label {
    color: #222 !important;
    font-weight: 500;
}

.btn, .btn-primary, .btn-secondary, .btn-success {
    background: #4A90E2 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

.btn-secondary {
    background: #6c757d !important;
}

.btn-success {
    background: #28a745 !important;
} 

/* Form genişliği artırıldı */
.container {
    max-width: 1200px;
}

/* Form Step Boyutu ve Responsive */
.card, .corporate-card-width {
    width: 100%;
    max-width: 1200px;
    min-width: 320px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 2.5rem;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .card, .corporate-card-width {
        max-width: 100vw;
        min-width: 0;
        padding: 1rem 0.5rem;
    }
}
.step {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}


@media (max-width: 992px) {
    .container {
        max-width: 98vw;
    }
    .card {
        max-width: 98vw;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100vw;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .card {
        max-width: 100vw;
        margin: 1rem 0;
        padding: 1rem;
    }
} 

/* --- Responsive improvements for Belgenet forms and tables --- */

@media (max-width: 1200px) {
  .card, .container, .row {
    max-width: 100vw;
    width: 100vw;
    min-width: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 900px) {
  .card {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .card {
    padding: 0.5rem;
    border-radius: 12px;
  }
  .stepper-wrapper {
    flex-direction: column;
    gap: 1rem;
    padding: 0;
  }
  .stepper-item {
    flex-direction: row;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  .step-counter {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .step-name {
    font-size: 0.9rem;
    margin-top: 0;
    margin-left: 0.5rem;
  }
  .form-control, .form-select {
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
  }
  .btn {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }
} 

#country[disabled] {
    background: #dddddd !important;
    color: #000 !important;
} 

/* Sertifika kartı buton hizalama ve responsive */
.certificate-template-card .template-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.certificate-template-card .btn {
    min-width: 160px;
}
@media (max-width: 768px) {
    .certificate-template-card .template-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    .certificate-template-card .btn {
        min-width: 120px;
        font-size: 0.95rem;
    }
}
.certificate-template-card {
    margin-bottom: 2rem;
} 

/* Certificate Preview Modal Styles */
#certificatePreviewModalBody {
    background: #f8fafc;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#certificatePreviewModal .certificate-template {
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    border-radius: 12px;
    background: #fff;
    padding: 2rem 2.5rem;
    margin: 0 auto;
    max-width: 700px;
    width: 100%;
}
@media (max-width: 768px) {
    #certificatePreviewModal .certificate-template {
        padding: 1rem 0.5rem;
        font-size: 0.97rem;
    }
} 

/* Sertifika Kartları ve Modal */
.certificate-template-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(44,62,80,0.08);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
  height: 100%;
}
.certificate-template-card:hover {
  box-shadow: 0 8px 32px rgba(44,62,80,0.16);
}
.template-info {
  margin-top: 1.5rem;
  width: 100%;
  text-align: center;
}
.template-info .btn {
  min-width: 120px;
}
.vanilla-modal {
  display: none !important;
  position: fixed !important;
  z-index: 99999 !important;
  left: 0; top: 0; width: 100vw; height: 100vh;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
}
.vanilla-modal.active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.vanilla-modal-backdrop {
  position: absolute; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(44,62,80,0.35);
}
.vanilla-modal-content {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(44,62,80,0.18);
  padding: 2rem 2.5rem;
  max-width: 700px;
  width: 95vw;
  margin: 0 auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}
.vanilla-modal-close {
  position: absolute; top: 12px; right: 18px;
  background: none; border: none; font-size: 2rem; color: #333; cursor: pointer;
}
@media (max-width: 768px) {
  .vanilla-modal-content { padding: 1rem 0.5rem; }
} 

/* Sertifika kartı içeriği her zaman görünür olsun */
.certificate-template-card .template-preview,
.certificate-template-card .preview-scale,
.certificate-template-card .certificate-template {
  display: block !important;
  height: auto !important;
  min-height: 100px;
}

/* Asrın Global Sertifika Şablonu */
.template-asrin {
  background: #ffffff;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 40px;
  font-family: 'Times New Roman', serif;
  color: #333;
  position: relative;
}

.template-asrin::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid #666;
  border-radius: 4px;
  pointer-events: none;
}

.template-asrin .certificate-header {
  text-align: center;
  margin-bottom: 30px;
}

.template-asrin .logo-section {
  margin-bottom: 15px;
}

.template-asrin .logo-placeholder {
  width: 60px;
  height: 60px;
  background: #333;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  margin: 0 auto;
}

.template-asrin h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.template-asrin h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.template-asrin .certificate-content {
  text-align: center;
  margin: 30px 0;
}

.template-asrin .greeting {
  font-size: 16px;
  margin-bottom: 15px;
}

.template-asrin .recipient-name {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.template-asrin .certificate-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: justify;
  padding: 0 20px;
}

.template-asrin .qr-code {
  text-align: center;
  margin: 20px 0;
}

.template-asrin .qr-placeholder {
  width: 80px;
  height: 80px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;
}

.template-asrin .certificate-footer {
  margin-top: 40px;
}

.template-asrin .signature-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.template-asrin .signature-left,
.template-asrin .signature-right {
  text-align: center;
  flex: 1;
}

.template-asrin .signature-placeholder {
  width: 120px;
  height: 40px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #666;
}

.template-asrin .signature-name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
}

.template-asrin .signature-title {
  font-size: 12px;
  color: #666;
  margin-bottom: 0;
} 

.receipt{border:1px dashed #ced4da;border-radius:8px;padding:16px;background:#fff}
.receipt-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.receipt-header .brand{font-weight:700;font-size:1.1rem}
.receipt-body{font-size:.95rem}
.receipt-row{display:flex;justify-content:space-between;padding:6px 0}
.receipt-row.total{font-weight:700;border-top:1px solid #e9ecef;margin-top:6px}
.receipt-footer{margin-top:8px;font-size:.8rem;color:#6c757d;text-align:center} 

.certificate-template-card.selected{border:2px solid #0d6efd;box-shadow:0 0 0 4px rgba(13,110,253,.1)}
.certificate-template-card .selected-badge{display:none;position:absolute;top:8px;right:8px;background:#198754;color:#fff;border-radius:12px;padding:4px 8px;font-size:.8rem}
.certificate-template-card.selected .selected-badge{display:inline-block}
.template-actions .btn.select-template.selected{pointer-events:none} 

.certificate-template-card{position:relative} 

.certificate-template-card:hover{transform:none !important;box-shadow:0 2px 4px rgba(0,0,0,0.05) !important}
.certificate-template-card:hover .template-preview{transform:none !important}
.certificate-template-card .selected-badge{z-index:2} 