/**
 * Ziyaretçi Defteri - Ana Stil Dosyası
 */

/* Genel Stiller */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f8fa;
    position: relative;
}

/* Yükleme İndikatörü */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Dashboard Sidebar */
.sidebar {
    width: 260px;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0;
    background-color: var(--dark-color);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin: 0.2rem 0.5rem;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: var(--primary-color);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 1.5rem;
    text-align: center;
}

.content-wrapper {
    margin-left: 260px;
    min-height: 100%;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
    transition: all 0.3s;
}

.content-wrapper .container-fluid {
    padding: 15px;
    margin: 0;
    height: 100%;
}

/* Mobil görünüm için */
@media (max-width: 991.98px) {
    .content-wrapper {
        margin-left: 0;
        padding: 0;
    }
}

/* Mobil için Sidebar Gizleme */
@media (max-width: 992px) {
    .sidebar {
        margin-left: -260px;
        z-index: 1050;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        transition: margin-left 0.3s ease;
    }
    
    .content-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar.show {
        margin-left: 0;
    }
    
    .content-wrapper.sidebar-open {
        margin-left: 260px;
    }
}

/* Topbar Stili */
.topbar {
    background-color: #fff;
    border-bottom: 1px solid #e3e6f0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    position: relative;
    z-index: 1030;
}

/* Kart Stilleri */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 1.75rem rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #edf2f9;
    padding: 1rem 1.25rem;
}

/* Tablolar */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* İşlemler Sütunu */
.actions-column {
    white-space: nowrap;
    width: 1%;
}

/* Form Stilleri */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
}

/* Düğme Stilleri */
.btn {
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* Profil Düğmesi */
.profile-button {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #e3e6f0;
}

/* Yükleme Butonu */
.btn-upload {
    position: relative;
    overflow: hidden;
}

.btn-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;
}

/* Kartvizit Önizleme */
.business-card-preview {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 0.25rem;
    border: 1px solid #ddd;
    object-fit: contain;
}

/* Kartvizit Galerisi */
.business-card-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.business-card-thumbnail:hover {
    transform: scale(1.05);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 0.5rem;
}

.modal-header {
    border-bottom: 1px solid #edf2f9;
}

.modal-footer {
    border-top: 1px solid #edf2f9;
}

/* Toast Bildirimleri */
.toast {
    z-index: 1090;
}

/* Pagination */
.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Logo ve Marka İsmi */
.app-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.app-brand .brand-text {
    margin-left: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Dashboard Sayaçları */
.counter-card {
    border-radius: 0.5rem;
    border-left: 0.25rem solid var(--primary-color);
    transition: transform 0.2s;
}

.counter-card:hover {
    transform: translateY(-5px);
}

.counter-icon {
    font-size: 2rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
}

.counter-value {
    font-size: 1.75rem;
    font-weight: 700;
}

/* Özel Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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