/* Admin Panel CSS */

/* Modal Boyut Düzenlemeleri */
.modal-dialog {
    max-width: 90% !important;
    width: 1000px !important;
    margin: 30px auto !important;
}

.modal-content {
    max-height: 85vh !important;
    display: flex !important;
    flex-direction: column !important;
}

.modal-header {
    flex-shrink: 0 !important;
    border-bottom: 1px solid #ddd !important;
    padding: 15px 20px !important;
}

.modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 20px !important;
    max-height: calc(85vh - 140px) !important;
}

.modal-footer {
    flex-shrink: 0 !important;
    border-top: 1px solid #ddd !important;
    padding: 15px 20px !important;
}

/* CKEditor 5 Boyut Ayarları */
.ck-editor__editable {
    min-height: 250px !important;
    max-height: 300px !important;
}

.ck.ck-editor {
    margin-bottom: 15px !important;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #f8f9fa;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* Sidebar Styles */
.sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #2c3e50;
    color: #fff;
    transition: all 0.3s;
    min-height: 100vh;
}

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

.sidebar-header {
    padding: 20px;
    background: #34495e;
    text-align: center;
}

.sidebar-header h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
}

.sidebar ul.components {
    padding: 20px 0;
}

.sidebar ul li {
    border-bottom: 1px solid #34495e;
}

.sidebar ul li a {
    padding: 15px 20px;
    font-size: 14px;
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li.active>a {
    color: #fff;
    background: #34495e;
    text-decoration: none;
}

.sidebar ul li a i {
    margin-right: 10px;
    width: 20px;
}

/* Content Styles */
.content {
    width: 100%;
    transition: all 0.3s;
}

.content.active {
    margin-left: 0;
}

/* Top Navbar */
.navbar {
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-default .navbar-nav>li>a {
    color: #333;
}

.navbar-default .navbar-nav>.open>a,
.navbar-default .navbar-nav>.open>a:hover,
.navbar-default .navbar-nav>.open>a:focus {
    background-color: #f8f9fa;
    color: #333;
}

/* Main Content */
.main-content {
    padding: 20px;
    min-height: calc(100vh - 70px);
}

/* Cards */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

.card-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.card-body {
    padding: 20px;
}

/* Dashboard Stats */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.stat-card.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-card.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card.info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card h3 {
    font-size: 36px;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.stat-card p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.stat-card i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}

/* Tables */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #333;
}

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

/* Buttons */
.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #f4645f;
    border-color: #f4645f;
}

.btn-primary:hover {
    background: #f4645f;
    border-color: #f4645f;
}

.btn-success {
    background: #38ef7d;
    border-color: #38ef7d;
    color: #333;
}

.btn-success:hover {
    background: #2dd36f;
    border-color: #2dd36f;
    color: #333;
}

/* Forms */
.form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../../images/background.jpg');
}

.login-card {
    background: #fff;
    padding: 14px;
    border-radius: 15px;
    background-color: rgb(230 230 230 / 93%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    border: 1px solid #ddd;
    width: 100%;
    max-width: 330px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    margin: 0;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }

    .sidebar.active {
        margin-left: 0;
    }

    .content {
        width: 100%;
    }

    .content.active {
        margin-left: 0;
    }
}

/* Status badges */
.status-active {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-inactive {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Loading spinner */
.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Language flags */
.language-flags {
    display: flex;
    gap: 5px;
}

.flag-icon {
    font-size: 16px;
    cursor: help;
}

/* Modal styles */
.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}

/* Page content styles */
.panel-group .panel {
    border-radius: 4px;
    margin-bottom: 10px;
}

.panel-heading {
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 10px 15px;
}

.panel-title a {
    text-decoration: none;
    color: #333;
    display: block;
}

.panel-title a:hover {
    text-decoration: none;
    color: #667eea;
}

.panel-collapse {
    border-top: 1px solid #ddd;
}

.panel-body {
    padding: 15px;
}

/* Label styles */
.label {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

.label-info {
    background-color: #5bc0de;
}

/* Slider specific styles */
.slider-image-container {
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.slider-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.current-image {
    text-align: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Input styles for inline editing */
.input-sm {
    height: 30px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

/* Flag icons */
.flag-icon img {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* File input styling */
input[type="file"] {
    padding: 6px 12px;
}

/* Alert improvements */
.alert-dismissible {
    position: relative;
    padding-right: 35px;
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.75rem 1.25rem;
    color: inherit;
}

/* Reference specific styles */
.reference-image-container {
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.reference-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

/* Checkbox styling */
input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
}

/* Button group spacing */
.btn-group .btn {
    margin-right: 2px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Product specific styles */
.product-image-container {
    position: relative;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    margin-bottom: 5px;
}

.product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery specific styles */
.gallery-image-container {
    position: relative;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.gallery-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar dropdown menu styles */
.sidebar ul li.dropdown .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin-top: 0;
    background-color: #2c3e50;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: none;
}

.sidebar ul li.dropdown.open .dropdown-menu {
    display: block;
}

.sidebar ul li.dropdown .dropdown-menu li {
    width: 100%;
}

.sidebar ul li.dropdown .dropdown-menu li a {
    color: #ecf0f1;
    padding: 10px 20px 10px 40px;
    border-left: 3px solid transparent;
}

.sidebar ul li.dropdown .dropdown-menu li a:hover,
.sidebar ul li.dropdown .dropdown-menu li.active a {
    background-color: #34495e;
    border-left-color: #3498db;
}

.sidebar ul li.dropdown>a {
    position: relative;
}

.sidebar ul li.dropdown>a .caret {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* User management styles */
.permission-badges .label {
    margin-right: 5px;
    margin-bottom: 2px;
    display: inline-block;
}

.permission-badges .label i {
    margin-right: 2px;
}

/* Flag opacity styles */
.opacity-full {
    opacity: 1;
}

.opacity-half {
    opacity: 0.3;
}

/* Label styles */
.label {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25em;
    margin-right: 3px;
    margin-bottom: 3px;
}

.label-info {
    background-color: #5bc0de;
}

/* Thumbnail gallery styles */
.thumbnail {
    display: block;
    padding: 4px;
    margin-bottom: 20px;
    line-height: 1.42857143;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border 0.2s ease-in-out;
}

.thumbnail .caption {
    padding: 9px;
    color: #333;
}