/* ==================== ADMIN PANEL STİLLERİ ==================== */

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-header h2 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-color);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.login-footer a {
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Admin Layout */
.admin-body {
    background: var(--light-color);
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--dark-color);
    color: #fff;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #374151;
}

.sidebar-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: #d1d5db;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #374151;
    color: #fff;
}

.sidebar-menu a i {
    width: 20px;
}

.logout-link {
    color: #ef4444 !important;
}

.logout-link:hover {
    background: #7f1d1d !important;
}

.admin-content {
    margin-left: 250px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: #fff;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.admin-header h1 {
    font-size: 1.75rem;
    color: var(--dark-color);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.admin-user i {
    font-size: 2rem;
    color: var(--primary-color);
}

.admin-main {
    flex: 1;
    padding: 2rem;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card.blue { border-left-color: #2563eb; }
.stat-card.green { border-left-color: #10b981; }
.stat-card.orange { border-left-color: #f59e0b; }
.stat-card.purple { border-left-color: #8b5cf6; }

.stat-card .stat-icon {
    font-size: 3rem;
}

.stat-card.blue .stat-icon { color: #2563eb; }
.stat-card.green .stat-icon { color: #10b981; }
.stat-card.orange .stat-icon { color: #f59e0b; }
.stat-card.purple .stat-icon { color: #8b5cf6; }

.stat-card .stat-info h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.stat-card .stat-info p {
    color: var(--text-color);
    font-size: 1rem;
}

.dashboard-content {
    display: grid;
    gap: 2rem;
}

.dashboard-section {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.dashboard-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    text-align: left;
}

.dashboard-section h2 {
    font-size: 1.5rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-notification {
    background: var(--danger-color);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    font-size: 0.8rem;
    min-width: 24px;
    text-align: center;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--light-color);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table tr:hover {
    background: var(--light-color);
}

.data-table tr.unread {
    background: #dbeafe;
}

.table-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge.satilik {
    background: #dbeafe;
    color: #1e40af;
}

.badge.kiralik {
    background: #fef3c7;
    color: #92400e;
}

.badge.aktif {
    background: #d1fae5;
    color: #065f46;
}

.badge.pasif {
    background: #fee2e2;
    color: #991b1b;
}

/* Actions */
.actions {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action.view {
    background: #dbeafe;
    color: #1e40af;
}

.btn-action.edit {
    background: #fef3c7;
    color: #92400e;
}

.btn-action.delete {
    background: #fee2e2;
    color: #991b1b;
}

.btn-action:hover {
    transform: scale(1.1);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Toolbar */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.toolbar-right .filter-form {
    display: flex;
    gap: 0.5rem;
}

/* Forms */
.form-container {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.admin-form .form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-form .form-section:last-of-type {
    border-bottom: none;
}

.admin-form .form-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.admin-form .form-help {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.preview-img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
}

/* Message Detail */
.message-detail td {
    padding: 0 !important;
}

.message-box {
    background: var(--light-color);
    padding: 1.5rem;
    margin: 0.5rem 1rem;
    border-radius: 5px;
}

.message-box h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.message-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.message-content {
    margin-bottom: 1rem;
}

.message-content p {
    margin-top: 0.5rem;
    padding: 1rem;
    background: #fff;
    border-radius: 5px;
}

/* Responsive Admin */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-right .filter-form {
        flex-direction: column;
    }
    
    .admin-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .admin-main {
        padding: 1rem;
    }
    
    .login-box {
        padding: 2rem 1.5rem;
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .message-info {
        grid-template-columns: 1fr;
    }
}
