/* admin.css - Admin panel CSS stilleri */
:root {
    --primary-color: #4c6ef5;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --info-color: #36b9cc;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fc;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #fff;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 10px;
}

.sidebar-brand-text {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.sidebar-brand-subtext {
    font-size: 0.85rem;
    opacity: 0.9;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #5a5c69;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-menu a i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: var(--primary-color);
    background-color: #f8f9fc;
    border-left-color: var(--primary-color);
}

.nav-item {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #5a5c69;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.nav-link i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background-color: #f8f9fc;
    border-left: 4px solid var(--primary-color);
}

.nav-link.active {
    font-weight: 700;
}

/* Main Wrapper */
.main-wrapper {
    margin-left: 250px;
    transition: 0.3s;
}

/* Topbar */
.topbar {
    height: 70px;
    background-color: #fff;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-btn {
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: #666;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    background: #f1f1f1;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-logout {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-logout:hover {
    background-color: #c82333;
    color: white;
}

/* Content */
.content {
    padding: 2rem;
}

/* Card */
.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.10);
    margin-bottom: 2rem;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e3e6f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    cursor: pointer;
}

.btn-primary-custom:hover {
    background: #3b5bdb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 110, 245, 0.4);
}

.btn-light-custom {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-light-custom:hover {
    background: #e8e8e8;
    color: #666;
}

.ml-2 {
    margin-left: 0.5rem;
}

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

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

.table-custom thead {
    background: #f8f9fa;
}

.table-custom th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-custom td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.table-custom tbody tr:hover {
    background: #f8f9fa;
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

.blog-thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.link-blue {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
}

.link-blue:hover {
    text-decoration: underline;
}

.action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    text-decoration: none;
    margin-right: 5px;
}

.btn-edit {
    background: var(--primary-color);
    color: white;
}

.btn-edit:hover {
    background: #3b5bdb;
    transform: scale(1.1);
}

.btn-delete {
    background: var(--danger-color);
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: scale(1.1);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-control-custom {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.1);
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Alert */
.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert .close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
}

.alert .close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .toggle-btn {
        display: flex;
    }
    
    .topbar {
        padding: 0 1rem;
    }
}
