/* Reset ve Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}


.badge-customs {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Bootstrap primary */
    color: white;
    padding: 0.35em 0.65em;
    font-size: 0.85em;
    font-weight: 500;
    border-radius: 0.375rem;
}

.me-1 {
    margin-right: 0.25rem;
}

.me-2 {
    margin-right: 0.5rem;
}


.ms-1 {
    margin-left: 0.25rem;
}

.ms-2 {
    margin-left: 0.5rem;
}


.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.text-uppercase {text-transform: uppercase}

.br-12{border-radius: 12px}

.badge-custom {
    display: inline-block;
    color: white;
    padding: 0.35em 0.65em;
    font-size: 0.85em;
    font-weight: 500;
    border-radius: 0.375rem;
}

/* Tema ile uyumlu modern pastel renkler */
.badge-custom-primary {
    background-color: #e0f0ff;
    color: #1d4ed8; /* mavi */
}

.badge-custom-success {
    background-color: #d1f3e0;
    color: #15803d; /* yeşil */
}

.badge-custom-danger {
    background-color: #fbe2e3;
    color: #b91c1c; /* kırmızı */
}

.badge-custom-warning {
    background-color: #fef7dc;
    color: #a16207;
    background-color: yellow;
    color: #000;
    /* sarı */
}

.badge-custom-info {
    background-color: #e0f7fa;
    color: #0e7490; /* turkuaz */
}

.badge-custom-secondary {
    background-color: #e5e7eb;
    color: #374151; /* gri */
}

.badge-custom-light {
    background-color: #f9fafb;
    color: #6b7280;
}

.badge-custom-dark {
    background-color: #d1d5db;
    color: #111827;
}

.badge-custom:hover {
    filter: brightness(0.95);
    cursor: default;
}



.text-color-primary {
    color: #1d4ed8;
}

.text-color-success {
    color: #15803d;
}

.text-color-danger {
    color: #b91c1c;
}

.text-color-warning {
    color:yellow;
}

.text-color-info {
    color: #0e7490;
}

.text-color-secondary {
    color: #374151;
}

.text-color-light {
    color: #6b7280;
}

.text-color-white {
    color: #DDD;
}

.text-color-dark {
    color: #111827;
}



.text-color--primary {
    background-color: #e0f0ff;
    color: #1d4ed8;
}

.text-color--success {
    background-color: #d1f3e0;
    color: #15803d;
}

.text-color--danger {
    background-color: #fbe2e3;
    color: #b91c1c;
}

.text-color--warning {
    background-color: #fef7dc;
    color: #a16207;
}

.text-color--info {
    background-color: #e0f7fa;
    color: #0e7490;
}

.text-color--secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.text-color--light {
    background-color: #f9fafb;
    color: #6b7280;
}

.text-color--dark {
    background-color: #d1d5db;
    color: #111827;
}


.text-left{text-align: left}
.text-center{text-align: center}
.fw-bold {font-weight: bold}

.box-shadow {box-shadow: 2px 4px 6px rgba(0,0,0,0.1);}
.text-shadow {text-shadow: 2px 4px 6px rgba(0,0,0,0.1);}


.fs-1 {
    font-size: 2.5rem !important; /* ~40px */
}

.fs-2 {
    font-size: 2rem !important; /* ~32px */
}

.fs-3 {
    font-size: 1.75rem !important; /* ~28px */
}

.fs-4 {
    font-size: 1.5rem !important; /* ~24px */
}

.fs-5 {
    font-size: 1.25rem !important; /* ~20px */
}

.fs-6 {
    font-size: 1rem !important; /* ~16px */
}

/* Ekstra - Bootstrap'te tanımlı olmayan fs-7 */
.fs-7 {
    font-size: 0.875rem !important; /* ~14px */
}



.shelf {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 0px;
}

.data-table th, .data-table td {
    padding: 12px;
    /* text-align: left; */
    border: 1px solid #e2e8f0;
}


.box {
    width: 25px;
    height: 30px;
    border: 2px solid #1e3a8a;
    position: relative;
    text-align: center;
    font-weight: bold;
    font-family: sans-serif;
    line-height: 25px;
    color: #000;
    box-sizing: border-box;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 2px 4px 6px rgba(0,0,0,0.1);
}

.box:hover {
    box-shadow: 4px 6px 10px rgba(0,0,0,0.25);
}

/* Renkli kutular */
.box.green {
    background-color: #28a745;
    color: white;
}

.box.yellow {
    background-color: yellow;
    color: #212529;
}

.box.empty {
    background-color: #f1f3f5;
    color: #000;
}



/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.user-menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    width: 256px;
    height: calc(100vh - 64px);
    background-color: white;
    border-right: 1px solid #e2e8f0;
    padding: 16px 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 999;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin: 4px 16px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
}

.nav-link:hover {
    background-color: #f1f5f9;
    color: #334155;
}

.nav-item.active .nav-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-link i {
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: 256px;
    margin-top: 64px;
    padding: 24px;
    min-height: calc(100vh - 64px);
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
}

/* Page Styles */
.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
}

.page-header p {
    color: #64748b;
    margin-top: 4px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-icon {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.btn-icon:hover {
    background-color: #f1f5f9;
    color: #334155;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.card-content {
    padding: 24px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.stat-content p {
    color: #64748b;
    font-size: 14px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.activity-item:hover {
    background-color: #f8fafc;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.activity-content p {
    font-size: 14px;
    color: #334155;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: #64748b;
}

/* Chart Placeholder */
.chart-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background-color: #f8fafc;
    border-radius: 8px;
    color: #94a3b8;
}

.chart-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
}

/* Search Box */
.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: #667eea;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px;
    /*text-align: left;*/
    border-bottom: 1px solid #e2e8f0;
}

.data-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.data-table td {
    font-size: 14px;
    color: #475569;
}

.data-table tr:hover {
    background-color: #f8fafc;
}

/* Text Colors */
.text-success {
    color: #059669 !important;
    font-weight: 600;
}

.text-danger {
    color: #dc2626 !important;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header-center {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        width: 200px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 16px;
    }
    
    .card-content {
        padding: 16px;
    }
    
    .card-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .search-box {
        width: 100%;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 