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

body {
    font-family: 'AlkatipYazma', 'UKIJ Tuz', 'Alkatip Tor', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    direction: rtl;
}

.loginav {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.loginbox {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px 30px;
}

.boxall {
    animation: slideIn 0.5s ease;
}

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

.logo h1 {
    text-align: center;
    color: #333;
    font-size: 26px;
    margin-bottom: 30px;
    font-weight: bold;
    direction: rtl;
}

.logininput {
    list-style: none;
}

.logininput li {
    margin-bottom: 20px;
    position: relative;
}

.logininput i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logininput i img {
    width: 24px;
    height: 24px;
}

.forminput {
    width: 100%;
    padding: 12px 55px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    background: #f9f9f9;
    font-family: 'AlkatipYazma', 'UKIJ Tuz', 'Alkatip Tor', Arial, sans-serif;
    text-align: right;
    direction: rtl;
}

.forminput:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.forminput::placeholder {
    color: #999;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-family: 'AlkatipYazma', 'UKIJ Tuz', 'Alkatip Tor', Arial, sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.btn-link {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    font-family: 'AlkatipYazma', 'UKIJ Tuz', 'Alkatip Tor', Arial, sans-serif;
}

.btn-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ئارقا بەت ئۇسلۇبى */
.admin-panel {
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    direction: rtl;
}

.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
}

.admin-header h1 {
    font-size: 28px;
    font-weight: bold;
    font-family: 'AlkatipYazma', 'UKIJ Tuz', 'Alkatip Tor', Arial, sans-serif;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.admin-content {
    padding: 30px;
    direction: rtl;
}

.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 15px;
    flex: 1;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'AlkatipYazma', 'UKIJ Tuz', 'Alkatip Tor', Arial, sans-serif;
}

.stat-label {
    font-size: 15px;
    opacity: 0.9;
    font-family: 'AlkatipYazma', 'UKIJ Tuz', 'Alkatip Tor', Arial, sans-serif;
}

.search-box {
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    direction: rtl;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    background: #f9f9f9;
    text-align: right;
    direction: rtl;
    font-family: 'AlkatipYazma', 'UKIJ Tuz', 'Alkatip Tor', Arial, sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-search {
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-family: 'AlkatipYazma', 'UKIJ Tuz', 'Alkatip Tor', Arial, sans-serif;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-clear {
    padding: 12px 20px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'AlkatipYazma', 'UKIJ Tuz', 'Alkatip Tor', Arial, sans-serif;
}

.btn-clear:hover {
    background: #ff3838;
    transform: translateY(-2px);
}

.table-container {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    direction: rtl;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    direction: rtl;
}

.data-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    direction: rtl;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
    direction: rtl;
    font-family: 'AlkatipYazma', 'UKIJ Tuz', 'Alkatip Tor', Arial, sans-serif;
    font-size: 14px;
}

.data-table th {
    font-weight: bold;
    font-size: 15px;
    text-transform: uppercase;
}

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

.data-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.data-table tbody tr:nth-child(even):hover {
    background: #f0f0f0;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'AlkatipYazma', 'UKIJ Tuz', 'Alkatip Tor', Arial, sans-serif;
}

.btn-danger {
    background: #ff4757;
    color: white;
}

.btn-danger:hover {
    background: #ff3838;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-warning {
    background: #ffa502;
    color: white;
}

.btn-warning:hover {
    background: #ff9500;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 165, 2, 0.3);
}

.yearly-customer {
    background: #fff3cd !important;
    border-right: 4px solid #ffc107;
}

.yearly-customer:hover {
    background: #ffe69c !important;
}

.disabled-customer {
    background: #f8d7da !important;
    border-right: 4px solid #dc3545;
    opacity: 0.8;
}

.disabled-customer:hover {
    background: #f5c6cb !important;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-disabled {
    background: #f8d7da;
    color: #721c24;
}

.btn-small.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-small.btn-info:hover {
    background: #138496;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(23, 162, 184, 0.3);
}

/* مەسئۇلىيەتلىك ئۇسلۇب */
@media (max-width: 768px) {
    .admin-panel {
        margin: 10px;
        border-radius: 15px;
    }

    .admin-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .admin-header h1 {
        font-size: 22px;
    }

    .admin-content {
        padding: 20px;
    }

    .stats {
        flex-direction: column;
    }

    .data-table th,
    .data-table td {
        padding: 10px;
        font-size: 12px;
    }
}

/* فورما ئۇسلۇبى */
form {
    direction: rtl;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"] {
    font-family: 'AlkatipYazma', 'UKIJ Tuz', 'Alkatip Tor', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'AlkatipYazma', 'UKIJ Tuz', 'Alkatip Tor', Arial, sans-serif;
}

/* خەت يۆنىلىشى */
div, span, p, label {
    font-family: 'AlkatipYazma', 'UKIJ Tuz', 'Alkatip Tor', Arial, sans-serif;
}
