/* Ana Stiller */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    position: relative;
    overflow-x: hidden;
}

/* Background Particles Container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.6;
}

/* Floating Insurance Icons Animation */
.floating-icons {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: -2;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    color: rgba(0, 105, 217, 0.1);
    font-size: 24px;
    animation: float 20s infinite linear;
}

.floating-icon:nth-child(1) { left: 10%; animation-delay: 0s; font-size: 20px; }
.floating-icon:nth-child(2) { left: 20%; animation-delay: -5s; font-size: 28px; }
.floating-icon:nth-child(3) { left: 30%; animation-delay: -10s; font-size: 18px; }
.floating-icon:nth-child(4) { left: 50%; animation-delay: -15s; font-size: 32px; }
.floating-icon:nth-child(5) { left: 70%; animation-delay: -8s; font-size: 22px; }
.floating-icon:nth-child(6) { left: 80%; animation-delay: -12s; font-size: 26px; }
.floating-icon:nth-child(7) { left: 90%; animation-delay: -3s; font-size: 24px; }

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Subtle Background Pattern */
.container {
    position: relative;
    z-index: 1;
}

/* Header Stili */
header {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

/* Kart Stili */
.card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 105, 217, 0.04);
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: 100%;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 105, 217, 0.12);
    border-color: rgba(0, 105, 217, 0.2);
}

.card-body {
    padding: 20px 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 160px;
    justify-content: space-between;
}

.card-body i {
    color: #0069d9;
    margin-bottom: 15px;
    font-size: 2.2rem;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.card:hover .card-body i {
    transform: scale(1.1);
    color: #004085;
}

.card-title {
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.card .btn {
    margin-top: auto;
    min-width: 140px;
}

/* Buton Stili - Kompakt */
.btn-primary {
    background: linear-gradient(135deg, #0069d9 0%, #004085 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 105, 217, 0.15);
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003366 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 105, 217, 0.3);
}

.btn-secondary {
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

/* Form Stili - Sade ve Kompakt */
form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 105, 217, 0.08);
    border: 1px solid rgba(0, 105, 217, 0.1);
    position: relative;
    z-index: 2;
    max-width: 100%;
}

/* Grid Form Layout */
form .row {
    margin-left: -10px;
    margin-right: -10px;
}

form .row > div {
    padding-left: 10px;
    padding-right: 10px;
}

/* Form Section Titles */
.section-title {
    color: #0069d9;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.section-title i {
    color: #0069d9;
    opacity: 0.7;
}

.section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #0069d9 0%, rgba(0, 105, 217, 0.1) 100%);
    margin-bottom: 20px;
}

/* Form Grid Responsive */
@media (max-width: 768px) {
    form {
        padding: 20px;
    border-radius: 10px;
        margin: 0 10px;
    }
    
    form .row > div[class*="col-md"] {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .section-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .form-control, .form-select {
        padding: 10px 12px;
        font-size: 16px; /* iOS zoom önleme */
    }
    
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .mb-3 {
        margin-bottom: 0.8rem !important;
    }
}

@media (max-width: 576px) {
    form {
        padding: 15px;
        margin: 0 5px;
    }
    
    .form-control, .form-select {
        padding: 12px;
        font-size: 16px;
    }
    
    .form-label {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 0.95rem;
    }
    
    .mb-3 {
        margin-bottom: 0.6rem !important;
    }
}

.form-control:focus {
    border-color: #0069d9;
    box-shadow: 0 0 0 0.2rem rgba(0, 105, 217, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    background: #fff;
    transition: all 0.2s ease;
    padding: 8px 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 6px;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

/* Alert Styles - Kompakt */
.alert-info {
    background: linear-gradient(135deg, rgba(0, 105, 217, 0.08) 0%, rgba(0, 105, 217, 0.03) 100%);
    border: 1px solid rgba(0, 105, 217, 0.15);
    border-radius: 8px;
    color: #004085;
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-info h6 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .alert-info {
        padding: 10px 12px;
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .alert-info h6 {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
}

/* Admin Panel Stili */
.sidebar {
    padding: 20px 0;
}

.avatar-sm {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Logo Container Enhancement */
.logo-container img {
    filter: drop-shadow(0 4px 8px rgba(0, 105, 217, 0.1));
}

/* Grid Layout Enhancements */
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.col-md-4 {
    margin-bottom: 1.5rem;
}

/* Grid container improvements */
.container .row {
    margin: 0 -0.75rem;
}

.container .row [class*="col"] {
    padding: 0 0.75rem;
}

/* Responsive Stiller */
@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }
    
    .card-body {
        min-height: 140px;
        padding: 18px 15px;
    }
    
    .card-body i {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .card-title {
        font-size: 0.9rem;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    
    form {
        padding: 20px;
    }
    
    .floating-icon {
        font-size: 18px !important;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 18px;
        font-size: 0.85rem;
        min-width: 100px;
        border-radius: 6px;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
    }
    
    .d-flex.justify-content-between .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .card-body {
        min-height: 120px;
        padding: 15px 12px;
    }
    
    .card-body i {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .card-title {
        font-size: 0.85rem;
        line-height: 1.1;
        margin-bottom: 10px;
    }
    
    .card .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        min-width: 90px;
    }
}

/* View Toggle Styles */
.view-toggle .btn {
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-toggle .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.view-toggle .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.view-toggle .btn.active {
    background: linear-gradient(135deg, #0069d9 0%, #004085 100%);
    border-color: #0069d9;
    color: white;
}

/* List View Styles */
.list-view .row {
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
}

.list-view .col-md-4 {
    flex: none;
    width: 100%;
    max-width: none;
    padding: 0 0.75rem;
}

.list-view .card {
    border-radius: 15px;
    margin-bottom: 15px;
    height: auto;
    min-height: auto;
    max-width: 100%;
}

.list-view .card-body {
    flex-direction: row;
    text-align: left;
    align-items: center;
    min-height: auto;
    padding: 25px 30px;
    justify-content: space-between;
    gap: 25px;
}

.list-view .card-body i {
    font-size: 2.5rem;
    margin-bottom: 0;
    margin-right: 0;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.list-view .card-title {
    flex-grow: 1;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    text-align: center;
    justify-content: center;
    padding: 0 20px;
}

.list-view .card .btn {
    margin-top: 0;
    margin-left: 0;
    flex-shrink: 0;
    min-width: 140px;
}

/* List View Hover Effects */
.list-view .card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(0, 105, 217, 0.15);
}

.list-view .card:hover .card-body i {
    transform: scale(1.1);
}

/* Responsive List View */
@media (max-width: 768px) {
    .list-view .row {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .list-view .card-body {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        gap: 20px;
    }
    
    .list-view .card-body i {
        width: auto;
        margin-bottom: 0;
        font-size: 2.2rem;
    }
    
    .list-view .card-title {
        padding: 0;
        font-size: 1.1rem;
    }
    
    .list-view .card .btn {
        margin-top: 0;
        min-width: 120px;
        align-self: center;
    }
    
    .view-toggle .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .list-view .card-body {
        padding: 20px 15px;
        gap: 15px;
    }
    
    .list-view .card-body i {
        font-size: 2rem;
    }
    
    .list-view .card-title {
        font-size: 1rem;
    }
}

/* İkon Stiller */
.fas {
    margin-right: 5px;
}

/* Font Awesome Fallback */
.fa-trash::before {
    content: "🗑️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fa-plus::before {
    content: "➕";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fa-info-circle::before {
    content: "ℹ️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

/* Buton içindeki ikonlar için özel stiller */
.btn .fas {
    font-size: 0.8rem;
    margin-right: 4px;
}

.btn-sm .fas {
    font-size: 0.7rem;
    margin-right: 3px;
}

/* X işareti için özel stil */
.btn-outline-danger.btn-sm {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1;
    padding: 4px 8px;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-danger.btn-sm:hover {
    font-size: 1.1rem;
}

/* Tablo Stilleri */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 10px;
    vertical-align: middle;
}

.table tbody td {
    padding: 12px 8px;
    vertical-align: middle;
    border-top: 1px solid #f1f3f4;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 105, 217, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 105, 217, 0.05);
    transition: background-color 0.2s ease;
}

.table .form-control-sm, .table .form-select-sm {
    font-size: 0.8rem;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    transition: all 0.2s ease;
}

.table .form-control-sm:focus, .table .form-select-sm:focus {
    border-color: #0069d9;
    box-shadow: 0 0 0 0.1rem rgba(0, 105, 217, 0.15);
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
    background: transparent;
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: scale(1.05);
}

.btn-outline-success {
    border-color: #28a745;
    color: #28a745;
    background: transparent;
    transition: all 0.2s ease;
}

.btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

/* Responsive Tablo Düzenlemeleri */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.75rem;
    }
    
    .table thead th {
        padding: 10px 6px;
        font-size: 0.7rem;
    }
    
    .table tbody td {
        padding: 8px 4px;
    }
    
    .table .form-control-sm, .table .form-select-sm {
        font-size: 0.7rem;
        padding: 4px 6px;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .table-responsive {
        border-radius: 8px;
    }
    
    .table thead th {
        padding: 8px 4px;
        font-size: 0.65rem;
        min-width: 80px !important;
    }
    
    .table tbody td {
        padding: 6px 3px;
    }
    
    .table .form-control-sm, .table .form-select-sm {
        font-size: 0.65rem;
        padding: 3px 5px;
        min-width: 70px;
    }
    
    .btn-sm {
        padding: 3px 6px;
        font-size: 0.65rem;
    }
    
    .btn-sm i {
        font-size: 0.6rem;
    }
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-group .form-check {
    margin-bottom: 0;
    padding-left: 1.5em;
}

.radio-group .form-check-input {
    margin-top: 0.25em;
    margin-left: -1.5em;
    border: 2px solid #dee2e6;
    transition: all 0.2s ease;
}

.radio-group .form-check-input:checked {
    background-color: #0069d9;
    border-color: #0069d9;
    box-shadow: 0 0 0 0.2rem rgba(0, 105, 217, 0.25);
}

.radio-group .form-check-input:focus {
    border-color: #0069d9;
    box-shadow: 0 0 0 0.2rem rgba(0, 105, 217, 0.15);
}

.radio-group .form-check-label {
    font-size: 0.95rem;
    color: #495057;
    cursor: pointer;
    transition: color 0.2s ease;
}

.radio-group .form-check-input:checked + .form-check-label {
    color: #0069d9;
    font-weight: 500;
}

@media (max-width: 768px) {
    .radio-group {
        gap: 6px;
    }
    
    .radio-group .form-check-label {
        font-size: 0.9rem;
    }
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper .form-control[type="file"] {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 12px;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-upload-wrapper .form-control[type="file"]:hover {
    border-color: #0069d9;
    background-color: rgba(0, 105, 217, 0.05);
}

.file-upload-wrapper .form-control[type="file"]:focus {
    border-color: #0069d9;
    box-shadow: 0 0 0 0.2rem rgba(0, 105, 217, 0.15);
    background-color: rgba(0, 105, 217, 0.05);
}

.file-upload-wrapper .form-text {
    margin-top: 8px;
    font-size: 0.875rem;
    color: #6c757d;
}

.file-upload-wrapper .form-text i {
    color: #0069d9;
}

/* Helper text styling */
.file-upload-wrapper .form-text.text-info {
    background: rgba(0, 105, 217, 0.05);
    border: 1px solid rgba(0, 105, 217, 0.15);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.file-upload-wrapper .form-text.text-info i {
    color: #0069d9;
    margin-right: 6px;
}

/* Multiple file selection indicator */
.file-upload-wrapper .form-text .text-success {
    font-weight: 500;
    color: #28a745 !important;
}

/* Custom file upload styling */
.custom-file-upload {
    position: relative;
    overflow: hidden;
}

.custom-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    cursor: pointer;
    display: block;
}

.custom-file-upload label {
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-file-upload label:hover {
    background-color: #0069d9;
    color: #fff;
}

.custom-file-upload label i {
    font-size: 0.8rem;
}

/* Accepted files list styling */
.accepted-files-list {
    background: rgba(0, 105, 217, 0.03);
    border: 1px solid rgba(0, 105, 217, 0.1);
    border-radius: 8px;
    padding: 15px;
}

.accepted-files-list h6 {
    color: #0069d9;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.accepted-files-list .file-item {
    background: #fff;
    transition: all 0.2s ease;
}

.accepted-files-list .file-item:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-color: #0069d9 !important;
}

.accepted-files-list .text-muted {
    color: #6c757d !important;
    font-size: 0.8rem;
    line-height: 1.3;
}

.accepted-files-list .fas.fa-file-alt {
    color: #0069d9;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .accepted-files-list {
        padding: 12px;
    }
    
    .accepted-files-list h6 {
        font-size: 0.85rem;
    }
    
    .accepted-files-list .text-muted {
        font-size: 0.75rem;
    }
    
    .accepted-files-list .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .custom-file-upload label {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
} 