/* Genel Stiller */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark Mode */
body.dark-mode {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.dark-mode .navbar {
    background-color: #2d3436 !important;
}

.dark-mode .card {
    background-color: #2d3436;
    border-color: #404040;
}

.dark-mode .card-header {
    background-color: #404040;
    border-bottom-color: #505050;
    color: #f0f0f0;
}

.dark-mode .form-control {
    background-color: #404040;
    border-color: #505050;
    color: #f0f0f0;
}

.dark-mode .form-control:focus {
    background-color: #404040;
    border-color: #0d6efd;
    color: #f0f0f0;
}

.dark-mode .table {
    color: #f0f0f0;
}

.dark-mode .table thead th {
    border-bottom-color: #404040;
}

.dark-mode .table td {
    border-color: #404040;
}

.dark-mode .modal-content {
    background-color: #2d3436;
    border-color: #404040;
}

.dark-mode .modal-header {
    border-bottom-color: #404040;
}

.dark-mode .modal-footer {
    border-top-color: #404040;
}

.dark-mode footer {
    background-color: #2d3436 !important;
    color: #f0f0f0;
}

.dark-mode footer a {
    color: #f0f0f0 !important;
}

/* Harita Kontrolleri */
#searchLocation {
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    z-index: 1;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#map {
    width: 100%;
    border-radius: 0 0 4px 4px;
}

/* Loading Spinner */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Bildirimleri */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 250px;
    z-index: 9999;
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    #map {
        height: 400px !important;
    }
    
    .toast {
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

/* Form Validasyonu */
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}

/* Pin Counter */
#pinCounter {
    font-weight: 500;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a:hover {
    text-decoration: underline !important;
}

/* Form Stilleri */
.form-label {
    font-weight: 500;
}

.form-text {
    font-size: 0.875rem;
}

/* Harita Konteyner */
#map {
    border-radius: 0.375rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.dark-mode #map {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Pin Sayacı */
.pin-counter {
    background-color: var(--light-bg);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

.dark-mode .pin-counter {
    background-color: var(--dark-secondary);
}

/* Navbar Özelleştirmeleri */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark-mode .navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Card Özelleştirmeleri */
.card {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border: none;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--border-color);
}

/* Liste Öğeleri */
.list-group-item {
    transition: background-color 0.2s;
}

.list-group-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.dark-mode .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Butonlar */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3367d6;
    border-color: #3367d6;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Animasyonlar */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Özel Buton Stilleri */
.btn-icon {
    padding: 0.375rem;
    line-height: 1;
}

.btn-icon i {
    font-size: 1.25rem;
} 