:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --sidebar-width: 250px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 5px;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #f5f5f5;
    color: var(--text-color);
    line-height: 1.6;
}

/* Genel Stil */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

/* Giriş Sayfası */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #3498db, #2c3e50);
}

.login-container {
    width: 400px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.login-header {
    text-align: center;
    padding: 30px;
    background-color: var(--primary-color);
    color: white;
}

.login-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.login-form {
    padding: 30px;
}

.login-footer {
    text-align: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    color: #777;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    text-decoration: none;
    gap: 8px;
}

.btn:active {
    transform: translateY(1px);
}

.btn i {
    margin-right: 5px;
}

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

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

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

.btn-success:hover {
    background-color: #27ae60;
}

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

.btn-danger:hover {
    background-color: #c0392b;
}

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

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

/* Ana Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.2);
}

.sidebar-header i {
    font-size: 1.5rem;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.user-info {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info i {
    font-size: 1.2rem;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding-top: 10px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: background-color 0.3s;
    border-left: 3px solid transparent;
}

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

.sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-nav li.active a {
    background-color: rgba(255, 255, 255, 0.2);
    border-left-color: var(--primary-color);
    font-weight: 500;
}

/* Ana İçerik */
.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.content-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-header h1 i {
    color: var(--primary-color);
}

/* Kartlar */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    padding: 20px;
    align-items: center;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 1.5rem;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.card-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.card-link {
    margin-left: auto;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-success {
    background-color: var(--success-color);
}

.bg-warning {
    background-color: var(--warning-color);
}

.bg-danger {
    background-color: var(--danger-color);
}

.bg-info {
    background-color: var(--info-color);
}

/* Dashboard */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.section-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.section-content {
    padding: 20px;
}

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

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

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    font-weight: bolder;
    font-size: 20px;
}

.table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.table tbody tr {
    border-bottom: 1px solid #eee;
}

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

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

.table .actions {
    text-align: right;
    white-space: nowrap;
}

.table .actions button,
.table .actions a {
    margin-left: 5px;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    position: relative;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.2);
    border: 1px solid var(--success-color);
    color: #27ae60;
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid var(--danger-color);
    color: #c0392b;
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.2);
    border: 1px solid var(--warning-color);
    color: #d35400;
}

.alert-info {
    background-color: rgba(52, 152, 219, 0.2);
    border: 1px solid var(--info-color);
    color: #2980b9;
}

.close-alert {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

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

.error-message {
    color: var(--danger-color);
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: var(--border-radius);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    max-width: 500px;
    width: 90%;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: #95a5a6;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Ürünler Sayfası */
.product-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
}

.product-search {
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: var(--border-radius);
    padding: 0 15px;
    height: 45px;
}

.search-box i {
    color: #95a5a6;
    margin-right: 10px;
}

.search-box input {
    flex: 1;
    border: none;
    background: none;
    height: 100%;
    outline: none;
    font-size: 16px;
}

/* Satış Sayfası */
.sales-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
}

.sales-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.barcode-scanner {
    margin-bottom: 20px;
}

.cart-container {
    margin-bottom: 20px;
}

.cart-container h2 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
}

.payment-details {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.payment-details h2 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.total-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.payment-methods h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.payment-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-btn {
    flex: 1;
    justify-content: center;
    height: 50px;
}

.payment-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.card-total {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-control button {
    width: 25px;
    height: 25px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.quantity-control span {
    margin: 0 8px;
    width: 30px;
    text-align: center;
    font-size: 20px;
    font-weight: bolder;
}

/* Stok Sayfası */
.stock-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
}

.stock-search {
    margin-bottom: 20px;
}

.product-info-display {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.product-info-display p {
    margin: 5px 0;
}

/* Barkod Sayfası */
.barcode-container {
    max-width: 800px;
    margin: 0 auto;
}

.barcode-preview {
    text-align: center;
    margin: 30px 0;
}

.barcode-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.barcode-print-view {
    text-align: center;
    margin: 20px 0;
}

.mt-3 {
    margin-top: 20px;
}

/* Ciro Sayfası */
.turnover-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
}

.turnover-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.turnover-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.turnover-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.chart-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.chart-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.chart-body {
    padding: 15px;
    height: 300px;
    position: relative;
}

.turnover-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.data-section {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.section-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.section-body {
    padding: 15px;
}

/* Duyarlı Tasarım */
@media (max-width: 1200px) {
    .turnover-charts,
    .turnover-data {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .sales-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .turnover-summary {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        overflow: hidden;
    }
    
    .sidebar-header h2,
    .user-info span,
    .sidebar-nav a span {
        display: none;
    }
    
    .sidebar-nav a {
        justify-content: center;
        padding: 15px;
    }
    
    .sidebar-nav a i {
        margin-right: 0;
        font-size: 1.2rem;
    }
    
    .content {
        margin-left: 70px;
    }
    
    .login-container {
        width: 90%;
    }
}

@media (max-width: 576px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .payment-buttons {
        flex-direction: column;
    }
}

/* Yardımcı Sınıflar */
.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 15px;
}

.mt-4 {
    margin-top: 20px;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 15px;
}

.mb-4 {
    margin-bottom: 20px;
}

.mr-2 {
    margin-right: 10px;
}