/* Admin Panel Stil Dosyası */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    overflow-x: hidden;
}

/* Wrapper */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    margin-top: 35px; /* Top bar yüksekliği */
}

/* Sidebar */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #343a40;
    color: #fff;
    transition: all 0.3s;
    z-index: 999;
    padding-top: 60px;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #212529;
}

#sidebar .sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #4b545c;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li {
    padding: 0;
}

#sidebar ul li a {
    padding: 10px 15px;
    display: block;
    color: #fff;
    text-decoration: none;
}

#sidebar ul li a:hover {
    background: #2c3136;
    color: #fff;
}

#sidebar ul li a.dropdown-toggle::after {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#sidebar ul li a.dropdown-toggle {
    position: relative;
}

#sidebar ul ul {
    background: #2c3136;
}

#sidebar ul ul li a {
    padding-left: 30px;
    font-size: 0.9em;
}

#sidebar ul ul li a:hover {
    background: #454d55;
}

#sidebar .list-unstyled.components {
    padding: 0;
}

#sidebar ul li.active > a {
    background: #2c3136;
    color: #fff;
}

#sidebar ul ul li.active > a {
    background: #0056b3;
}

/* Content */
#content {
    width: calc(100% - 250px);
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
    background: #f8f9fa;
    position: relative;
    margin-left: 250px;
    overflow-x: auto;
}

#sidebar.active + #content {
    width: 100%;
    margin-left: 0;
}

/* Top Bar */
.top-bar {
    background: #2c3136;
    color: #fff;
    padding: 5px 15px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    height: 35px;
    display: flex;
    align-items: center;
    font-size: 0.9em;
}

.top-bar .site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar .site-logo #sidebarCollapse {
    padding: 2px 8px;
    font-size: 0.9em;
}

.top-bar .stats {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 15px;
}

.top-bar .stat-item {
    display: flex;
    align-items: center;
    margin-left: 20px;
    color: #fff;
    text-decoration: none;
}

.top-bar .stat-item i {
    margin-right: 5px;
}

.top-bar .stat-item .badge {
    margin-left: 5px;
}

/* Card */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.card-body {
    padding: 20px;
}

/* Table */
.table thead th {
    border-top: none;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.table td {
    vertical-align: middle;
}

/* Buttons */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        margin-left: 0;
    }
    #content.active {
        margin-left: 250px;
    }
    #sidebarCollapse span {
        display: none;
    }
}

/* İkon margin düzenlemesi */
.fas {
    margin-right: 8px;
}

/* Buton hover efektleri */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.top-bar .currency-info {
    font-size: 0.85em;
    color: rgba(255,255,255,0.7);
    margin-left: 5px;
}

/* Responsive düzenlemeler */
@media (max-width: 1200px) {
    .top-bar .currency-info {
        display: none;
    }
}

@media (max-width: 992px) {
    .top-bar {
        font-size: 0.8em;
    }
    .top-bar .stats {
        gap: 10px;
    }
    .top-bar .stat-item {
        padding: 0 5px;
    }
}

@media (max-width: 768px) {
    .top-bar .stat-item span:not(.badge) {
        display: none;
    }
    .top-bar .stat-item i {
        margin-right: 0;
    }
}

/* Tablo responsive düzenlemesi */
.table-responsive {
    border-radius: .25rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Görseller için */
.img-preview {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    margin: 5px 0;
}

.preview-image {
    max-width: 200px;
    max-height: 200px;
    margin: 10px 0;
    object-fit: contain;
}

.dropzone {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
}

.dropzone.dragover {
    border-color: #0d6efd;
    background: #e9ecef;
}

/* Tablolar için */
.table th {
    white-space: nowrap;
}

/* Formlar için */
.required:after {
    content: " *";
    color: red;
}

/* İmaj URL/Dosya seçim bölümü */
.image-selector {
    margin-bottom: 15px;
}

.image-field-group {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
}

.url-preview-container {
    margin-top: 10px;
    text-align: center;
}

.url-preview {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
} 