/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A4A4A;
    --primary-dark: #3A3A3A;
    --primary-light: #6A6A6A;
    --secondary-color: #4A4A4A;
    --secondary-light: #6A6A6A;
    --secondary-dark: #2A2A2A;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-bg: #2A2A2A;
    --sidebar-bg: #4A4A4A;
    --main-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #4A4A4A;
    --text-secondary: #6A6A6A;
    --border-color: #e2e8f0;
    --hover-bg: #fff8e6;
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--main-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo .logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
}

.sidebar.collapsed .logo h2 {
    display: none;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    background: rgba(74, 74, 74, 0.2);
    color: white;
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item i {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
}

.sidebar.collapsed .nav-item span {
    display: none;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 1rem;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-details h4 {
    font-size: 0.875rem;
    font-weight: 600;
}

.user-details p {
    font-size: 0.75rem;
    color: #94a3b8;
}

.sidebar.collapsed .user-info {
    justify-content: center;
}

.sidebar.collapsed .user-details {
    display: none;
}

.logout-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.sidebar.collapsed .logout-btn span {
    display: none;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* Header */
.header {
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.breadcrumb {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--main-bg);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 250px;
}

.notification-btn {
    position: relative;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.notification-btn:hover {
    background: var(--hover-bg);
}

.notification-btn .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger-color);
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 1rem;
}

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

.page-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.blue { background: linear-gradient(135deg, #FFC20E 0%, #E6AE0D 100%); }
.stat-icon.green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.stat-icon.orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.stat-icon.red { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }

.stat-details h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Card */
.card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

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

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

thead {
    background: var(--main-bg);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

td {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

tr:hover {
    background: var(--hover-bg);
}

/* Badges */
.badge-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-type.cutting {
    background: rgba(74, 74, 74, 0.1);
    color: #4A4A4A;
}

.badge-type.tempering {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.badge-type.lamination {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge.in-progress {
    background: rgba(74, 74, 74, 0.1);
    color: #4A4A4A;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 74, 74, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: var(--transition);
}

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

/* Chart */
.chart-container {
    padding: 1rem 0;
}

.chart-item {
    display: grid;
    grid-template-columns: 150px 1fr 60px;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chart-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.color-dot.cutting { background: #2563eb; }
.color-dot.tempering { background: #ef4444; }
.color-dot.lamination { background: #f59e0b; }

.chart-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
}

.chart-fill {
    height: 100%;
    border-radius: 1rem;
    transition: width 0.5s ease;
}

.chart-fill.cutting { background: #2563eb; }
.chart-fill.tempering { background: #ef4444; }
.chart-fill.lamination { background: #f59e0b; }

.chart-value {
    text-align: right;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.page-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.filter-select,
.filter-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--card-bg);
    transition: var(--transition);
    font-size: 0.875rem;
}

.filter-select {
    cursor: pointer;
}

.filter-input {
    min-width: 180px;
}

.filter-input::placeholder {
    color: var(--text-secondary);
}

.filter-select:hover,
.filter-input:hover {
    border-color: var(--primary-color);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.15);
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header {
        padding: 1rem;
    }

    .search-box input {
        width: 150px;
    }

    .content {
        padding: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-input,
    .filter-select {
        width: 100%;
    }
    
    .page-header-actions {
        flex-direction: column;
    }
    
    .page-header-actions button {
        width: 100%;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    margin: 0;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: auto;
    position: relative;
}

.modal-content.modal-large {
    max-width: 680px;
}

.modal-content.modal-xlarge {
    max-width: 1000px;
    width: 95%;
}

#customerModal .modal-content {
    max-width: 720px;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

#customerModal .modal-header {
    padding: 1rem 1.5rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

#customerModal .modal-header h3 {
    font-size: 1.125rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: var(--transition);
}

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

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--card-bg);
}

#customerModal .modal-footer {
    padding: 1rem 1.5rem;
}

/* Form Styles */
#glassTypeForm,
#priceListForm,
#customerForm {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 160px);
    flex: 1;
}

.form-group {
    margin-bottom: 0.875rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-row {
    margin-bottom: 0.875rem;
}

#customerForm .form-group {
    margin-bottom: 0.75rem;
}

#customerForm .form-row {
    margin-bottom: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.form-row-4col {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8125rem;
}

#customerForm .form-group label {
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
}

.form-group .required {
    color: var(--danger-color);
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text-primary);
    font-family: inherit;
}

#customerForm .form-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.15);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

textarea.form-input {
    resize: vertical;
    min-height: 70px;
    max-height: 120px;
}

#customerForm textarea.form-input {
    min-height: 50px;
    max-height: 80px;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Filters Bar */
.filters-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .form-row,
    .form-row-4col {
        grid-template-columns: 1fr;
    }
    
    .filters-bar {
        flex-direction: column;
    }
    
    .modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 1rem);
    }
    
    .modal-content.modal-large {
        max-width: 100%;
    }
    
    #glassTypeForm,
    #priceListForm,
    #customerForm {
        padding: 1rem;
        max-height: calc(100vh - 140px);
    }
    
    #customerModal .modal-content {
        max-width: 100%;
    }
    
    #customerForm .form-input {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    #customerForm textarea.form-input {
        min-height: 45px;
    }
    
    .process-item-row {
        grid-template-columns: 1fr;
    }
    
    .process-field-action {
        margin-top: 0.5rem;
        justify-content: center;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .order-actions button {
        width: 100%;
    }
}

/* Transactions Page Styles */
#customer-transactions-content .page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

#customer-transactions-content .page-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

#customer-transactions-content .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(74, 74, 74, 0.2);
}

.balance-info {
    color: white;
}

.balance-label {
    font-size: 0.875rem;
    opacity: 0.9;
    display: block;
    margin-bottom: 0.5rem;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.customer-info-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

#transactionsPageTable tbody tr:hover {
    background: var(--hover-bg);
}

/* Transaction Type Badges */
.transaction-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.transaction-badge.tahsilat {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.transaction-badge.odeme {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.transaction-badge.siparis {
    background: rgba(74, 74, 74, 0.1);
    color: #4A4A4A;
}

.transaction-badge.iade {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.transaction-amount {
    font-weight: 600;
}

.transaction-amount.debit {
    color: var(--danger-color);
}

.transaction-amount.credit {
    color: var(--success-color);
}

/* Order Page Styles */
.order-form-container {
    max-width: 1200px;
}

.order-info-section {
    padding: 1.5rem;
}

.order-item {
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--main-bg);
    position: relative;
}

.order-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.order-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.remove-item-btn {
    background: transparent;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: var(--transition);
}

.remove-item-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.process-selection {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.process-selection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.process-selection-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.process-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.process-items:empty::before {
    content: 'İşlem eklemek için "İşlem Ekle" butonuna tıklayın.';
    display: block;
    text-align: center;
    padding: 1.5rem;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.875rem;
    background: var(--main-bg);
    border-radius: 0.5rem;
}

.process-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.process-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
}

.process-field {
    display: flex;
    flex-direction: column;
}

.process-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.process-field input:disabled {
    background: var(--main-bg);
    cursor: not-allowed;
}

.process-field input:read-only {
    background: var(--main-bg);
    cursor: default;
    color: var(--text-secondary);
}

.process-unit-price {
    position: relative;
    padding-left: 1.5rem !important;
}

.process-field:has(.process-unit-price) {
    position: relative;
}

.process-field:has(.process-unit-price)::before {
    content: '₺';
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

.process-field-action {
    display: flex;
    align-items: flex-end;
    padding-bottom: 0.25rem;
}

.order-summary {
    background: var(--main-bg);
    border: 2px solid var(--primary-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
}

.summary-row + .summary-row {
    border-top: 1px solid var(--border-color);
}

.summary-total {
    background: var(--primary-color);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.summary-total .summary-label,
.summary-total .summary-value {
    color: white;
}

.summary-label {
    font-size: 1rem;
    font-weight: 600;
}

.summary-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

.order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

#orderItemsContainer:empty::before {
    content: 'Henüz sipariş kalemi eklenmedi. "Kalem Ekle" butonuna tıklayın.';
    display: block;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--main-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Login Screen Styles */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #4A4A4A 0%, #3A3A3A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.login-box {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 450px;
    animation: fadeInUp 0.6s ease-out;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    width: 200px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.login-logo .logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-form label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.login-form .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: var(--transition);
}

.login-form .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 74, 74, 0.15);
}

.login-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 0.875rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.login-error i {
    font-size: 1.1rem;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #4A4A4A 0%, #3A3A3A 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 74, 74, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .login-box {
        padding: 2rem;
        margin: 1rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
}

