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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #1a1a1a;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-panel {
    max-width: 1200px;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

h2 {
    font-size: 20px;
    margin: 20px 0 15px 0;
    color: #333;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    min-height: 44px;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    min-height: 44px;
    min-width: 44px;
}

.btn:hover {
    background: #0052a3;
}

.btn-secondary {
    background: #666;
}

.btn-secondary:hover {
    background: #555;
}

.btn-edit {
    display: inline-block;
    padding: 6px 12px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    min-height: 44px;
    line-height: 32px;
}

.btn-edit:hover {
    background: #0052a3;
}

.errors {
    background: #fee;
    border: 1px solid #fcc;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #c00;
}

.success {
    background: #efe;
    border: 1px solid #cfc;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #070;
}

.note {
    font-size: 14px;
    color: #666;
    margin: -10px 0 15px 0;
}

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

.filter-bar {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-form label {
    margin: 0;
    white-space: nowrap;
}

.filter-form select {
    flex: 1;
    max-width: 300px;
}

.table-responsive {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.orders-table th,
.orders-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

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

.orders-table tr:hover {
    background: #fafafa;
}

.status-new {
    background: #FFF9C4 !important;
    font-weight: bold;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #e0e0e0;
    border-radius: 3px;
    font-size: 14px;
}

.no-orders {
    text-align: center;
    padding: 40px;
    color: #999;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.edit-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .orders-table {
        font-size: 14px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 8px 6px;
    }
}
