/* Admin Panel Genel */
body {
    background: #f7f7fa;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #222;
    margin: 0;
}
.admin-main-wrapper {
    margin-left: 260px;
    min-height: 100vh;
    background: #f7f7fa;
    transition: margin-left 0.3s;
}

/* Sidebar */
.admin-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 260px;
    background: #fff;
    box-shadow: 2px 0 16px #0001;
    z-index: 100;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    padding: 24px 0 18px 0;
}
.admin-sidebar-section {
    margin-bottom: 28px;
}
.admin-sidebar-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #b85c38;
    margin: 0 0 10px 32px;
    letter-spacing: 1px;
    opacity: 0.85;
}
.admin-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.admin-sidebar-menu li {
    margin-bottom: 2px;
}
.admin-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.08rem;
    color: #222;
    text-decoration: none;
    padding: 10px 24px 10px 32px;
    border-radius: 10px 0 0 10px;
    transition: background 0.18s, color 0.18s;
    font-weight: 500;
}
.admin-sidebar-menu a i {
    font-size: 1.18rem;
    min-width: 22px;
    text-align: center;
}
.admin-sidebar-menu li.active a,
.admin-sidebar-menu a:hover {
    background: #fff7e6;
    color: #b85c38;
}

/* Header */
.admin-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #fff;
    box-shadow: 0 2px 12px #0001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px 0 0;
    z-index: 101;
}
.admin-header-left {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 100%;
}
.admin-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #b85c38;
    cursor: pointer;
    margin-left: 12px;
    margin-right: 8px;
    padding: 0;
}
.admin-logo {
    font-size: 1.7rem;
    font-weight: bold;
    color: #b85c38;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-logo i {
    font-size: 1.5rem;
}
.admin-header-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-search-form {
    background: #f7f7fa;
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 2px 8px #0001;
    min-width: 260px;
    max-width: 400px;
    width: 100%;
}
.admin-search-form input {
    border: none;
    background: transparent;
    font-size: 1.08rem;
    padding: 10px 8px;
    outline: none;
    width: 100%;
}
.admin-search-form button {
    background: none;
    border: none;
    color: #b85c38;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 4px;
}
.admin-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.admin-header-icon {
    background: none;
    border: none;
    color: #b85c38;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.18s;
}
.admin-header-icon:hover {
    background: #fff7e6;
}
.admin-header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #222;
}
.admin-user-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff7e6;
}

/* Dashboard Ana İçerik */
.admin-dashboard-main {
    padding: 36px 36px 36px 0;
    background: #f7f7fa;
    min-height: 100vh;
}
.admin-dashboard-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 24px;
    color: #222;
}
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.admin-stat-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px #0001;
    padding: 24px 20px 20px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.18s, box-shadow 0.18s;
    min-height: 80px;
}
.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px #0001;
}
.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #b85c38;
}
.admin-stat-title {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 4px;
}
.admin-stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #222;
}

/* Ana Sayfa Bölümleri */
.admin-dashboard-row {
    margin-bottom: 24px;
}
.admin-dashboard-chart-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px #0001;
    padding: 24px;
}
.admin-dashboard-box-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-dashboard-bar-chart {
    height: 200px;
    background: linear-gradient(135deg, #f7f7fa 0%, #fff 100%);
    border-radius: 12px;
    display: flex;
    align-items: end;
    justify-content: space-around;
    padding: 20px;
    gap: 8px;
}
.admin-dashboard-bar {
    background: linear-gradient(135deg, #b85c38 0%, #8d4c2f 100%);
    border-radius: 6px 6px 0 0;
    min-width: 30px;
    transition: all 0.3s;
}
.admin-dashboard-row-2col {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}
.admin-dashboard-table-box, .admin-dashboard-pie-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px #0001;
    padding: 24px;
    flex: 1;
    min-width: 0;
}
.admin-dashboard-table-box {
    flex: 2;
}
.admin-dashboard-viewall {
    background: none;
    border: none;
    color: #b85c38;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s;
}
.admin-dashboard-viewall:hover {
    color: #8d4c2f;
}
.admin-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}
.admin-dashboard-table th, .admin-dashboard-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}
.admin-dashboard-table th {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}
.admin-dashboard-table td {
    color: #222;
    font-size: 0.95rem;
}
.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    min-width: 80px;
    display: inline-block;
}
.status.onway {
    background: #fff7e6;
    color: #b85c38;
}
.status.pending {
    background: #ffe6e6;
    color: #dc3545;
}
.status.delivered {
    background: #e6ffe6;
    color: #28a745;
}
.admin-dashboard-pie-box {
    flex: 1;
}
.admin-dashboard-pie-chart {
    height: 200px;
    background: linear-gradient(135deg, #f7f7fa 0%, #fff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 16px;
}
.admin-dashboard-pie-chart::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px #0001;
}

/* Siparişler ve Diğer Sayfalar için Bölümler */
.admin-orders-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px #0001;
    padding: 24px;
    margin-bottom: 24px;
}
.admin-orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.admin-orders-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #222;
}
.admin-btn-add {
    background: #b85c38;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-btn-add:hover {
    background: #8d4c2f;
}
.admin-btn-delete {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.admin-btn-delete:hover {
    background: #c82333;
}

/* Responsive */
@media (max-width: 900px) {
    .admin-orders-section { padding: 10px 4px 8px 4px; }
    .admin-orders-header { flex-direction: column; gap: 8px; align-items: flex-start; }
}
@media (max-width: 1100px) {
    .admin-main-wrapper { margin-left: 0; }
    .admin-sidebar { position: static; width: 100%; height: auto; box-shadow: none; }
    .admin-dashboard-row-2col { flex-direction: column; gap: 18px; }
    .admin-dashboard-table-box, .admin-dashboard-pie-box { min-width: 0; }
}
@media (max-width: 700px) {
    .admin-dashboard-main { padding: 12px 2px 12px 2px; }
    .admin-header { padding: 0 8px 0 0; }
    .admin-sidebar { padding: 8px 0 8px 0; }
    .admin-stats-grid { gap: 10px; }
    .admin-stat-card { padding: 12px 6px 8px 6px; min-height: 60px; }
    .admin-dashboard-row, .admin-dashboard-row-2col { margin-bottom: 12px; }
}

/* Modal Stilleri - Modern ve Yumuşak */
.admin-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 30, 40, 0.25);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    animation: fadeInModalBg 0.35s cubic-bezier(0.4,0.2,0.2,1);
}
.admin-modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: transparent;
}
.admin-modal-content {
    position: relative;
    background: linear-gradient(135deg, #fff 80%, #f7f7fa 100%);
    margin: 0 auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 440px;
    box-shadow: 0 8px 32px 0 rgba(60,60,90,0.18), 0 1.5px 8px 0 rgba(184,92,56,0.08);
    animation: fadeInUpModal 0.35s cubic-bezier(0.4,0.2,0.2,1);
    overflow: hidden;
    border: 1px solid #ececec;
}
.admin-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #b85c38;
    margin: 0;
    padding: 22px 32px 8px 32px;
    background: linear-gradient(90deg, #fff7e6 0%, #fff 100%);
    border-bottom: 1px solid #f3e7d8;
    letter-spacing: 0.5px;
}
.admin-modal-close {
    color: #b85c38;
    font-size: 1.5rem;
    font-weight: 400;
    cursor: pointer;
    position: absolute;
    right: 18px;
    top: 18px;
    transition: all 0.18s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff7e6;
    border: 1px solid #f3e7d8;
}
.admin-modal-close:hover {
    color: #fff;
    background: #b85c38;
    border-color: #b85c38;
    transform: scale(1.08);
}
.admin-modal-form {
    padding: 0;
}
.admin-modal-fields {
    padding: 28px 32px 24px 32px;
    background: transparent;
}
.admin-modal-form label {
    display: block;
    font-weight: 600;
    color: #b85c38;
    margin-bottom: 8px;
    font-size: 1rem;
}
.admin-modal-form input,
.admin-modal-form select,
.admin-modal-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f3e7d8;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
    margin-bottom: 18px;
    background: #fff7e6;
    color: #222;
}
.admin-modal-form input:focus,
.admin-modal-form select:focus,
.admin-modal-form textarea:focus {
    outline: none;
    border-color: #b85c38;
    background: #fff;
    box-shadow: 0 2px 8px 0 rgba(184,92,56,0.08);
}
.admin-modal-form textarea {
    min-height: 90px;
    resize: vertical;
    font-family: inherit;
}
.admin-modal-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23b85c38' stroke-width='2'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 40px;
}
.admin-modal-submit {
    background: linear-gradient(90deg, #b85c38 0%, #e7a97e 100%);
    color: #fff;
    border: none;
    padding: 14px 0;
    border-radius: 10px;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s;
    width: 100%;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px 0 rgba(184,92,56,0.08);
}
.admin-modal-submit:hover {
    background: linear-gradient(90deg, #8d4c2f 0%, #b85c38 100%);
    transform: translateY(-2px) scale(1.03);
}
@media (max-width: 600px) {
  .admin-modal-content {
    width: 99%;
    margin: 0 auto;
    border-radius: 14px;
    padding: 0;
  }
  .admin-modal-title {
    padding: 16px 16px 6px 16px;
    font-size: 1.08rem;
  }
  .admin-modal-fields {
    padding: 16px;
  }
  .admin-modal-close {
    right: 8px;
    top: 8px;
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }
}

@keyframes fadeInModalBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUpModal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sosyal Medya Sayfası için Ek Stiller */
.admin-alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
}

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

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

/* Düzenleme Butonu Stilleri */
.admin-btn-edit {
    background: #ffc107;
    color: #212529;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
}

.admin-btn-edit:hover {
    background: #e0a800;
    color: #212529;
}

/* İşlemler sütunu için düzenleme */
.admin-dashboard-table td:last-child {
    white-space: nowrap;
}

.admin-dashboard-table td:last-child a {
    margin-right: 8px;
}

.admin-dashboard-table td:last-child a:last-child {
    margin-right: 0;
}

/* Buton grupları için yan yana düzenleme */
.admin-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-btn-group .admin-btn-edit,
.admin-btn-group .admin-btn-delete {
    margin: 0;
    flex-shrink: 0;
}

/* Tablo hücrelerinde buton grupları */
.admin-dashboard-table td .admin-btn-group {
    justify-content: flex-start;
}

/* Responsive buton grupları */
@media (max-width: 600px) {
    .admin-btn-group {
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
    }
    
    .admin-btn-group .admin-btn-edit,
    .admin-btn-group .admin-btn-delete {
        text-align: center;
        justify-content: center;
    }
} 
 