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

:root {
    --primary-color: #8B8A9C;
    --secondary-color: #9A9A9A;
    --success-color: #8B8A9C;
    --danger-color: #7A7A7A;
    --warning-color: #9A9A9A;
    --info-color: #8B8A9C;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    
    --bg-color: white;
    --text-color: #000;
    --container-bg: #fff;
    --table-bg: #fff;
    --table-hover: rgba(139, 138, 156, 0.05);
    --input-bg: #fff;
    --input-border: #dee2e6;
    --card-bg: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: #efefef;
    min-height: 100vh;
    padding: 10px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: var(--transition);
}
.zzm{margin-top:28px;
    padding:5px;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--container-bg);
    border-radius: 1px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeIn 0.5s ease;
    position: relative;
}

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

.header {
    background: #efefef;
    color: white;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/*.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}*/

.header-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.header-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.header h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.kirmizi {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    color: black;
    position: relative;
    z-index: 1;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.theme-icon {
    font-size: 24px;
    position: absolute;
    transition: var(--transition);
}

.sun-icon {
    opacity: 1;
}

.moon-icon {
    opacity: 0;
}

/*.theme-toggle[data-theme="dark"] .sun-icon {
    opacity: 0;
}

.theme-toggle[data-theme="dark"] .moon-icon {
    opacity: 1;
}*/

.tabs {
    display: flex;
    background: var(--card-bg);
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-color);
}

.tabs::-webkit-scrollbar {
    height: 4px;
}

.tabs::-webkit-scrollbar-track {
    background: var(--light-color);
}

.tabs::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.tab {
    flex: 1;
    min-width: 140px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    background: transparent;
    color: var(--dark-color);
    white-space: nowrap;
    position: relative;
}

.tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.tab:hover {
    background: rgba(139, 138, 156, 0.1);
    color: var(--primary-color);
}

.tab.active {
    background: var(--container-bg);
    color: var(--primary-color);
    font-weight: 700;
}

.tab.active::after {
    width: 80%;
}

.content {
    padding: 20px;
    color: var(--text-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tab-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 700;
}

.tab-content h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
}

input[type="text"],
input[type="file"],
input[type="date"],
input[type="color"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--input-border);
    border-radius: 2px;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text-color);
}

input[type="text"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 138, 156, 0.1);
}

input[type="text"]:disabled,
input[type="text"][readonly] {
    background: var(--card-bg);
    cursor: not-allowed;
}

textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

select {
    cursor: pointer;
    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='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
    appearance: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.checkbox-label:hover {
    background: var(--card-bg);
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 12px 20px;
    border-radius: 1px;
    transition: var(--transition);
    margin-bottom: 10px;
}

.radio-label:hover {
    border-color: var(--primary-color);
    background: rgba(139, 138, 156, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.radio-label input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 700;
}

.radio-label span {
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
    font-size: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 18px;
    line-height: 1;
}

.btn-text {
    line-height: 1;
}

.btn-primary {
  background: white;
    color: black;
  
}

.btn-primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px black;
     
}

.btn-success {
    background: #8B8A9C;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 138, 156, 0.3);
}

.btn-success:hover {
    background: #7A798B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 138, 156, 0.4);
}

.btn-danger {
 background: white;
    color: black;
    padding: 10px 18px;
    font-size: 13px;
    border:1px solid red;
    
}

.btn-danger:hover {
       background: #f8f9fa;
       color:darkred;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px black;
}

.btn-warning {
      background: #f8f9fa;
    color: black;
    padding: 10px 18px;
    font-size: 13px;
   
}

.btn-warning:hover {
       background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px black;
}

.btn-secondary {
      background: #f8f9fa;
    color: black;
}

.btn-secondary:hover {
      background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px black;
}

.btn-print {
         background: #f8f9fa;
    color: black;
}

.btn-print:hover {
         background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px black;
}

.btn-print-selected {
       background: #f8f9fa;
    color: black;
}

.btn-print-selected:hover {
     background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px black;
}

.btn-select-all {
      background: #f8f9fa;
    color: black;
    
}

.btn-select-all:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px black;
}

.btn-export-pdf {
     background: #f8f9fa;
    color: black;
}

.btn-export-pdf:hover {
     background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px black;
}

.btn-export-excel {
     background: #f8f9fa;
    color: black;
}

.btn-export-excel:hover {
     background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px black;
}

.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--card-bg);
    border-radius:2px;
    align-items: center;
    justify-content: space-between;
    
}

.action-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;

    align-items: center;
}

.liman-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 2px;
   
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 2px;
    box-shadow: var(--shadow);
    background: var(--table-bg);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--table-bg);
    min-width: 800px;
}

th, td {
    padding: 15px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-color);
}

th {
    background: var(--card-bg);
    font-weight: 700;
    color: var(--dark-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

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

tr:last-child td {
    border-bottom: none;
}

th input[type="checkbox"],
td input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 10px 16px;
    border: 2px solid var(--primary-color);
    background: var(--input-bg);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 14px;
    min-width: 44px;
    min-height: 44px;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.alert {
    padding: 15px 20px;
    border-radius: 2px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #8B8A9C;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #9A9A9A;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #7A7A7A;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #8B8A9C;
}

.form-row {
    position: relative;
}

.autocomplete-suggestions {
    position: absolute;
    background: var(--input-bg);
    border: 2px solid var(--primary-color);
    border-top: none;
    max-height: 250px;
    overflow-y: auto;
    width: calc(100% - 4px);
    z-index: 1000;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow);
    margin-top: -2px;
}

.autocomplete-suggestion {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    font-size: 14px;
    color: var(--text-color);
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

.autocomplete-suggestion:hover {
    background: rgba(139, 138, 156, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.no-data {
    text-align: center;
    padding: 50px 20px;
    color: #999;
    font-size: 16px;
    font-weight: 500;
}

.stats-box {
    background: #9A9A9A;
    color: white;
    padding: 25px;
    border-radius: 2px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.stats-box h3 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 10px 0;
    font-weight: 700;
    color: white;
}

.stats-box p {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.95;
}

#colorPreview {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--container-bg);
    border-radius: 2px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 25px;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.modal-footer {
    padding: 20px 25px;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-footer .btn {
    min-width: 100px;
}

.site-footer {
    margin-top: 40px;
    padding: 20px;
    background: var(--card-bg);
    border-top: 2px solid var(--border-color);
    margin-bottom: 20px;
}

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

.footer-content p {
    margin: 0;
    color: var(--dark-color);
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .container {
        border-radius: 2px;
    }
    
    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-group {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    .container {
        border-radius: 2px;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .header-logo {
        height: 60px;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }
    
    .theme-icon {
        font-size: 20px;
    }
    
    .tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .tab {
        min-width: 120px;
        padding: 14px 10px;
        font-size: 13px;
    }
    
    .content {
        padding: 15px;
    }
    
    .tab-content h2 {
        font-size: 1.5rem;
    }
    
    .action-bar {
        padding: 15px;
    }
    
    .action-group {
        flex-direction: column;
        width: 100%;
    }
    
    .action-group .btn {
        width: 100%;
        justify-content: center;
    }
    
    .liman-selector {
        flex-direction: column;
        width: 100%;
    }
    
    .radio-label {
        width: 100%;
        justify-content: center;
    }
    
    .filter-container {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .table-container {
        border-radius: 2px;
    }
    
    table {
        font-size: 13px;
    }
    
    th, td {
        padding: 10px 8px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .btn-icon {
        font-size: 16px;
    }
    
    .pagination button {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .stats-box {
        padding: 20px 15px;
    }
    
    .modal-container {
        width: 95%;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-body p {
        font-size: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.3rem;
    }
    
    .kirmizi {
        font-size: 1rem;
    }
    
    .tab {
        min-width: 100px;
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .btn-text {
        font-size: 12px;
    }
    
    input[type="text"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px;
    }
}

html {
    scroll-behavior: smooth;
}

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

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .header,
    .tabs,
    .action-bar,
    .filter-container,
    .pagination,
    .btn,
    .site-footer,
    .theme-toggle {
        display: none !important;
    }
    
    .table-container {
        box-shadow: none;
    }
    
    table {
        min-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}