/* CRM Navbar Custom Styles */
.navbar-brand img {
    height: 40px;
}
.dropdown-menu {
    min-width: 200px;
}
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding-left: 1rem;
    }
}

/* Dashboard page styles */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f8f9fa;
    padding: 0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 15px;
    border-radius: 0;
    box-shadow: none;
}
.form-title {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #007bff;
    font-weight: 700;
    font-size: 1.5rem;
}
.form-group {
    margin-bottom: 1rem;
}
.form-control {
    height: 40px;
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 14px;
}
.required-field {
    color: #dc3545;
    margin-left: 3px;
}
.btn-primary {
    padding: 0.5rem 1rem;
    font-size: 14px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.alert {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    display: none;
    font-size: 14px;
}
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
textarea.form-control {
    min-height: 80px;
    resize: vertical;
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .form-title {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }
    .form-group {
        margin-bottom: 0.75rem;
    }
    .form-control {
        height: 38px;
        font-size: 13px;
        padding: 0.4rem 0.75rem;
    }
    .form-label {
        font-size: 13px;
        margin-bottom: 0.3rem;
    }
    .btn-primary {
        width: 100%;
        max-width: none;
        margin-top: 10px;
        padding: 0.4rem 0.75rem;
        font-size: 13px;
    }
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    .col-md-6, .col-md-4 {
        padding-left: 5px;
        padding-right: 5px;
    }
    textarea.form-control {
        min-height: 60px;
    }
    .alert {
        padding: 10px;
        font-size: 13px;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    .form-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    .form-control {
        height: 36px;
        font-size: 12px;
    }
    .form-label {
        font-size: 12px;
    }
    .btn-primary {
        font-size: 12px;
        padding: 0.35rem 0.6rem;
    }
    .required-field {
        font-size: 10px;
    }
}

/* Destek page styles */
.table-responsive { overflow-x: auto; }
.search-container { margin-bottom: 20px; }
.filter-container { margin-bottom: 20px; }
.btn-action { margin: 0 2px; }
.modal-body { max-height: 60vh; overflow-y: auto; }
.ticket-priority { font-weight: bold; }
.priority-urgent { color: #dc3545; }
.priority-high { color: #fd7e14; }
.priority-medium { color: #ffc107; }
.priority-low { color: #28a745; }
.ticket-status { font-weight: bold; }
.status-open { color: #0d6efd; }
.status-in-progress { color: #fd7e14; }
.status-resolved { color: #198754; }
.status-closed { color: #6c757d; }
@media (max-width: 768px) {
    .table th, .table td { font-size: 14px; padding: 6px; }
    .btn-action { padding: 0.25rem 0.5rem; font-size: 0.875rem; }
    .container { padding: 0.5rem !important; }
    #calendar { padding: 0.2rem; border-radius: 0.5rem; }
    .fc-toolbar-title { font-size: 1.1rem; }
    .modal-dialog { max-width: 98vw; margin: 0.5rem auto; }
    .modal-content { border-radius: 0.7rem; }
    .modal-body, .modal-header { padding: 1rem 0.7rem; }
    .btn, .form-select, .form-control { font-size: 1rem; min-height: 44px; }
}

.min-width-select {
    min-width: 120px;
    display: inline-block;
}

.fc-event { cursor: pointer; }
.modal-content { border-radius: 1rem; }
.fc-toolbar-title { font-size: 1.4rem; font-weight: 600; }
#calendar { background: #fff; border-radius: 1rem; box-shadow: 0 2px 16px 0 rgba(60,72,100,0.07); padding: 1rem; }

.business-logo {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
}
.logo-preview {
    width: 200px;
    height: 200px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
}
.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.form-label { font-weight: 500; }
.required-field::after { content: " *"; color: red; }

body {
    background-color: #f8f9fc;
    font-family: 'Nunito', sans-serif;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color), #224abe);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    margin-bottom: 1.5rem;
}

.stats-card {
    background: linear-gradient(45deg, var(--primary-color), #224abe);
    color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.stats-card .icon {
    font-size: 2rem;
    opacity: 0.8;
}

.stats-card .value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stats-card .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.opportunities-list {
    max-height: 600px;
    overflow-y: auto;
}

.opportunity-item {
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    padding: 1.5rem;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.opportunity-item:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.filter-btn {
    border-radius: 0.25rem;
    margin: 0 0.25rem;
    font-size: 0.875rem;
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.contact-details small {
    font-size: 0.8rem;
    color: #6c757d;
}

.value-display {
    text-align: center;
}

.meta-info {
    text-align: center;
}

.source-info {
    text-align: center;
}

.dropdown-menu {
    min-width: 200px;
}

.dropdown-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
}

.dropdown-item {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: #f8f9fc;
}

.dropdown-item.text-danger:hover {
    background-color: #fbe9e7;
}

@media (max-width: 768px) {
    .opportunity-item .row > div {
        margin-bottom: 1rem;
    }
    .filter-btn {
        margin: 0.25rem;
        font-size: 0.8rem;
    }
    .btn-group {
        flex-wrap: wrap;
    }
}

.form-control, .form-select {
    border-radius: 0.35rem;
    border: 1px solid #d1d3e2;
    padding: 0.375rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.btn {
    border-radius: 0.35rem;
    padding: 0.375rem 0.75rem;
    font-weight: 600;
}

.btn-primary {
    background-color: #4e73df;
    border-color: #4e73df;
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

@media (max-width: 768px) {
    .opportunity-item form.row.g-2 {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .opportunity-item form .col-12 {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .opportunity-item form .btn {
        width: 100%;
    }
}

.product-sales-btn {
    background: linear-gradient(45deg, #1cc88a, #13855c);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    margin: 1rem 0;
    transition: all 0.3s ease;
}

.product-sales-btn:hover {
    background: linear-gradient(45deg, #13855c, #1cc88a);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Case Management Styles */
.priority-urgent { background-color: #ffe6e6; }
.priority-high { background-color: #fff3cd; }
.priority-normal { background-color: #ffffff; }
.priority-low { background-color: #d1ecf1; }

.case-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.case-image:hover {
    transform: scale(1.1);
}

.customer-search-container {
    position: relative;
}

.customer-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.customer-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.customer-option:hover {
    background-color: #f8f9fa;
}

.customer-option:last-child {
    border-bottom: none;
}

/* Filtreleme formu stilleri */
.filter-form {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.filter-form .form-label {
    font-weight: 600;
    color: #495057;
}

.filter-form .btn {
    margin-top: 24px;
}

/* Buton hizalama */
.d-flex.gap-2 {
    align-items: flex-end;
}

.d-flex.gap-2 .btn {
    margin-top: 0;
    white-space: nowrap;
}

/* Tablo stilleri */
.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
}

.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Loading animasyonu */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Case Management Responsive */
@media (max-width: 768px) {
    .filter-form .row {
        margin-bottom: 10px;
    }
    
    .filter-form .col-md-3 {
        margin-bottom: 15px;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

.lead-management-page .stats-card .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000 !important;
    margin-bottom: 5px;
    text-shadow: none;
    display: block;
}

.lead-management-page .stats-card .label {
    font-size: 0.9rem;
    color: #000000 !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

/* License Purchase Page Styles */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pricing-card.popular {
    border-color: #0d6efd;
    position: relative;
}

.pricing-card.popular::before {
    content: 'En Popüler';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #0d6efd;
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* Cart Page Styles */
.cart-item {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: #28a745;
    margin-right: 10px;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
}

.btn-payment {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    color: white;
}

/* Responsive adjustments for license pages */
@media (max-width: 768px) {
    .pricing-card {
        margin-bottom: 20px;
    }
    
    .pricing-card.popular::before {
        font-size: 10px;
        padding: 3px 12px;
    }
    
    .cart-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .summary-card {
        padding: 20px;
    }
    
    .btn-payment {
        padding: 12px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pricing-card.popular::before {
        font-size: 9px;
        padding: 2px 10px;
        top: -10px;
    }
    
    .cart-item {
        padding: 12px;
    }
    
    .summary-card {
        padding: 15px;
    }
    
    .btn-payment {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Payment Logos Footer */
.payment-section {
    background: #f8f9fa;
    padding: 30px 0;
    border-top: 1px solid #e9ecef;
}

.payment-section h5 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.payment-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.payment-category {
    text-align: center;
}

.payment-category h6 {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.payment-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.payment-logo {
    transition: all 0.3s ease;
    border-radius: 5px;
}

.payment-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.security-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.85rem;
}

.security-item i {
    color: #28a745;
    font-size: 1rem;
}

/* Responsive adjustments for payment logos */
@media (max-width: 768px) {
    .payment-categories {
        gap: 15px;
    }
    
    .payment-category h6 {
        font-size: 0.8rem;
    }
    
    .payment-logos {
        gap: 8px;
    }
    
    .payment-logo {
        height: 30px !important;
        margin: 0 5px !important;
    }
    
    .security-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .security-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .payment-categories {
        gap: 10px;
    }
    
    .payment-logos {
        gap: 5px;
    }
    
    .payment-logo {
        height: 25px !important;
        margin: 0 3px !important;
    }
    
    .security-item {
        font-size: 0.75rem;
    }
}

/* FAQ Search ve Lisans Satın Al Sayfası İyileştirmeleri */
.faq-search-container .form-control {
    height: 60px;
    border-radius: 15px;
    font-size: 1.1rem;
    padding-left: 20px;
    padding-right: 20px;
    border: 2px solid #e9ecef;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Lisans Satın Al - Faturalama Döngüsü Seçimi */
.btn-group .btn-check:checked + .btn {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-group .btn {
    padding: 12px 24px;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.btn-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-group .badge {
    font-size: 0.7em;
    padding: 2px 6px;
}

/* Pricing Cards - Faturalama Döngüsü Geçişleri */
.pricing-card .monthly-price,
.pricing-card .yearly-price {
    transition: all 0.4s ease;
}

.pricing-card .yearly-price .text-decoration-line-through {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.pricing-card .yearly-price .text-success {
    font-weight: 500;
}

.pricing-card .monthly-btn,
.pricing-card .yearly-btn {
    transition: all 0.3s ease;
}

/* Sepet Sayfası - Tasarruf Bildirimi */
.alert-success {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
}

.alert-success .fas {
    font-size: 1.2em;
}

/* Badge Stilleri */
.badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.badge.bg-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

/* Animasyonlar */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn-group .btn-check:checked + .btn .badge {
    animation: pulse 2s infinite;
}

