/* Genel Stiller */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Tablo Stilleri */
.table-responsive {
    overflow-x: auto;
}

.table th {
    background-color: #f1f1f1;
}

.table-hover tbody tr:hover {
    background-color: #f5f5f5;
}

/* Kart Stilleri */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Form Stilleri */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Arama Sonuçları */
#search-results {
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
}

#search-results .list-group-item {
    border-left: none;
    border-right: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#search-results .list-group-item:first-child {
    border-top: none;
}

#search-results .list-group-item:last-child {
    border-bottom: none;
}

#search-results .list-group-item:hover {
    background-color: #f5f5f5;
}

#search-results .list-group-item a {
    color: #333;
}

#search-results .text-muted {
    font-size: 0.85rem;
}

/* Yorum Stilleri */
.comment {
    border-left: 3px solid #007bff;
    padding-left: 15px;
    margin-bottom: 20px;
}

.comment-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .table th, .table td {
        padding: 0.5rem;
    }

    /* Header için mobil uyumluluk */
    header .row {
        margin-bottom: 0.5rem;
    }

    /* Mobilde logo boyutu */
    header h1 {
        font-size: 1.25rem !important;
        margin-bottom: 0;
    }

    /* Mobilde arama kutusu */
    #search-input {
        font-size: 0.9rem;
    }

    /* Mobilde giriş butonu */
    .gsi-material-button {
        min-width: auto !important;
        padding: 0 8px !important;
        height: 36px !important;
        font-size: 12px !important;
    }

    .gsi-material-button .gsi-material-button-icon {
        height: 18px !important;
        width: 18px !important;
        min-width: 18px !important;
        margin-right: 8px !important;
    }

    .gsi-material-button .gsi-material-button-contents {
        font-size: 12px !important;
    }

    /* Mobilde dropdown menü */
    .dropdown-menu {
        min-width: 200px;
    }
}

/* Offline Modu Bildirimi */
.offline-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #dc3545;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
}

.offline-notification.show {
    display: block;
    animation: fadeIn 0.3s;
}

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

/* Kategori Filtreleme */
.category-filter {
    margin-bottom: 20px;
}

.category-filter a.active {
    font-weight: bold;
    color: #007bff;
}

/* Şirket Detay Sayfası */
.company-details {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.company-details h2 {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.company-reason {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Google Giriş Butonu Stilleri */
.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: #131314;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #e3e3e3;
    cursor: pointer;
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: 200px;
}

.gsi-material-button .gsi-material-button-icon {
    height: 20px;
    margin-right: 12px;
    min-width: 20px;
    width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
    -webkit-align-items: center;
    align-items: center;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: center;
    position: relative;
    width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 0;
    flex-grow: 0;
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
    -webkit-transition: opacity .218s;
    transition: opacity .218s;
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.gsi-material-button:disabled {
    cursor: default;
    background-color: #2d2e30;
    border-color: #5f6368;
}

.gsi-material-button:disabled .gsi-material-button-contents {
    opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
    opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
    background-color: #303134;
    opacity: 1;
}

.gsi-material-button:not(:disabled):hover {
    -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
    background-color: #303134;
    opacity: 1;
}

/* Admin Panel Stilleri */
.admin-sidebar {
    background-color: #343a40;
    color: #fff;
    min-height: calc(100vh - 56px);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
}

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

.admin-content {
    padding: 20px;
}

/* Yükleme Animasyonu */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}