/* Google Haritalar Yorum Admin Paneli - CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Login Sayfası */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px 30px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: #4285f4;
    color: white;
}

.btn-primary:hover {
    background-color: #3367d6;
    transform: translateY(-1px);
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header h2 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: block;
    padding: 12px 20px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: #f8f9fa;
    color: #4285f4;
}

.nav-item.active {
    background-color: #e3f2fd;
    color: #4285f4;
    border-left-color: #4285f4;
}

.nav-item i {
    margin-right: 10px;
    width: 16px;
}

/* Alt menü stilleri */
.nav-item-group {
    border-bottom: 1px solid #f0f0f0;
}

.nav-sub-item {
    padding-left: 40px !important;
    font-size: 14px;
    background-color: #fafafa;
    border-left: 3px solid #e0e0e0 !important;
}

.nav-sub-item:hover {
    background-color: #f0f0f0;
    border-left-color: #4285f4 !important;
}

.nav-sub-item.active {
    background-color: #e8f4fd;
    border-left-color: #4285f4 !important;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
}

/* Header */
.header {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.logout-btn {
    background-color: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logout-btn:hover {
    background-color: #c82333;
    color: white;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 20px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stat-icon.blue { background-color: #4285f4; }
.stat-icon.green { background-color: #28a745; }
.stat-icon.orange { background-color: #ffc107; }
.stat-icon.red { background-color: #dc3545; }

.stat-content h4 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-content p {
    color: #666;
    font-size: 14px;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background-color: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e9ecef;
}

.table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    color: #666;
}

.table tr:hover {
    background-color: #f8f9fa;
}

/* Status Badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Level Indicator */
.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background-color: #fff3cd;
    color: #856404;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Platform Badges */
.platform-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    min-width: 32px;
}

.platform-badge.google {
    background-color: #4285f4;
}

.platform-badge.tripadvisor {
    background-color: #006400;
}

.platform-badge.trustpilot {
    background-color: #00b67a;
}

.platform-badge.yandex {
    background-color: #FF5C4D;
}

.platform-badge.unknown {
    background-color: #6c757d;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 10px;
    padding: 4px 8px;
    transition: color 0.2s;
    min-width: 60px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: #007bff;
}

.mobile-nav-item i {
    font-size: 18px;
    margin-bottom: 2px;
}

.mobile-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding-bottom: 80px; /* Space for bottom nav */
    }
    
    .mobile-bottom-nav {
        display: block;
    }
    
    .container {
        padding: 15px 10px;
    }
    
    .page-header {
        padding: 15px 0;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    /* Table responsive adjustments */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
    }
    
    /* Stats grid mobile */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    /* Form adjustments */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Button adjustments */
    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Modal adjustments */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    /* Payment methods mobile */
    .payment-methods {
        flex-direction: column;
        gap: 8px;
    }
    
    .payment-option {
        width: 100%;
    }
    
    .payment-card {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mobile-nav-items {
        padding: 0 5px;
    }
    
    .mobile-nav-item {
        min-width: 50px;
        padding: 4px 4px;
    }
    
    .mobile-nav-item i {
        font-size: 16px;
    }
    
    .mobile-nav-item span {
        font-size: 9px;
    }
    
    .container {
        padding: 10px 5px;
    }
    
    .page-header h1 {
        font-size: 1.3rem;
    }
    
    .table {
        font-size: 12px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* WhatsApp Button */
.whatsapp-btn {
    background-color: #25d366;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
    color: white;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Login Info */
.login-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.login-info p {
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        overflow-x: auto;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }
.text-info { color: #17a2b8; }
.text-muted { color: #6c757d; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }


/* Mobile Responsive */
@media (max-width: 768px) {
    /* Layout düzeltmeleri */
    .main-content {
        padding: 10px;
        padding-bottom: 80px;
        margin: 0;
    }
    
    .container {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }
    
    .card {
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .card-body {
        padding: 10px;
    }
    
    
    /* Mobile tablo stilleri */
    .mobile-table {
        width: 100%;
        table-layout: fixed;
        font-size: 14px;
        margin: 0;
    }
    
    .mobile-table th,
    .mobile-table td {
        padding: 12px 8px;
        border-bottom: 1px solid #e9ecef;
        vertical-align: middle;
    }
    
    .mobile-table th {
        background-color: #f8f9fa;
        font-weight: 600;
        font-size: 13px;
        color: #495057;
    }
    
    /* Sütun genişlikleri */
    .mobile-table .user-name {
        width: 45%;
        font-size: 15px;
    }
    
    .mobile-table .user-phone {
        width: 35%;
        font-size: 14px;
    }
    
    .mobile-table .user-detail {
        width: 20%;
        text-align: center;
    }
    
    /* Kullanıcı adı stilleri */
    .mobile-table .user-name strong {
        font-weight: 600;
        color: #333;
    }
    
    /* Telefon stilleri */
    .whatsapp-btn-mobile {
        color: #25d366;
        text-decoration: none;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
    }
    
    .whatsapp-btn-mobile:hover {
        color: #128c7e;
        text-decoration: none;
    }
    
    .whatsapp-btn-mobile i {
        font-size: 16px;
    }
    
    .phone-text {
        color: #6c757d;
        font-size: 14px;
    }
    
    /* Detay butonu stilleri */
    .btn-mobile {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 6px;
        min-width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #007bff;
        border: 1px solid #007bff;
        color: white;
        text-decoration: none;
    }
    
    .btn-mobile:hover {
        background-color: #0056b3;
        border-color: #0056b3;
        color: white;
        text-decoration: none;
    }
    
    .btn-mobile i {
        font-size: 16px;
    }
    
    /* Tablo container */
    .table-container {
        overflow: hidden;
        margin: 0;
    }
    
    /* Header düzeltmeleri */
    .header {
        padding: 15px 10px;
        margin: 0;
    }
    
    .header h1 {
        font-size: 20px;
        margin: 0;
    }
    
    .header-actions {
        margin-top: 10px;
    }
    
    .header-actions .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Extra small devices (phones, 320px and up) */
@media (max-width: 480px) {
    .main-content {
        padding: 5px;
    }
    
    .card-body {
        padding: 8px;
    }
    
    .mobile-table {
        font-size: 13px;
    }
    
    .mobile-table th,
    .mobile-table td {
        padding: 10px 6px;
    }
    
    .mobile-table .user-name {
        font-size: 14px;
    }
    
    .whatsapp-btn-mobile,
    .phone-text {
        font-size: 13px;
    }
    
    .btn-mobile {
        padding: 6px 10px;
        min-width: 40px;
        height: 40px;
        font-size: 13px;
    }
    
    .btn-mobile i {
        font-size: 14px;
    }
}

/* Recent Comments Page Styles */
.comment-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.comment-link-btn-mobile {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    margin-top: 4px;
}


/* Admin Yorumları Stilleri */
.admin-comments-section {
    margin-top: 20px !important;
}

.comment-text {
    max-width: 300px;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .comment-text {
        max-width: 200px;
        font-size: 12px;
    }
}

/* Yorum ekleme formu toggle animasyonu */
#adminCommentForm {
    transition: all 0.3s ease;
}

#commentFormToggle {
    transition: all 0.3s ease;
}

/* Admin yorum tablosu responsive */
@media (max-width: 768px) {
    .admin-comments-table th,
    .admin-comments-table td {
        padding: 8px 4px !important;
        font-size: 12px !important;
    }
    
    .admin-comments-table .comment-text {
        max-width: 150px !important;
        font-size: 11px !important;
    }
    
    .admin-comments-table .btn-sm {
        padding: 4px 6px !important;
        font-size: 10px !important;
    }
}

