:root {
    --primary-color: #e74c3c;
    --secondary-color: #d35400;
    --accent-color: #f39c12;
    --bg-color: #f8f9fa;
    --text-color: #2c3e50;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --success-color: #27ae60;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Animated background elements */
.bg-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.bg-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -50px;
    left: -50px;
}

.bg-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, 30px);
    }
}

.login-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.logo {
    text-align: center;
    margin-bottom: 25px;
}

.logo-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

h1 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 0.9rem;
}

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

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

.input-wrapper {
    position: relative;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Cart Styling */
.meat-cart {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
}

.meat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.meat-item:last-child {
    border-bottom: none;
}

.meat-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.meat-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.meat-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Stepper Controls */
.stepper-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 40px;
}

.stepper-btn {
    width: 40px;
    height: 100%;
    border: none;
    background: #f1f1f1;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.stepper-btn:hover {
    background: #e0e0e0;
}

.stepper-btn:active {
    transform: scale(0.95);
}

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

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

.stepper-input {
    width: 50px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    background: #fff;
    -moz-appearance: textfield;
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.unit-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-left: 8px;
    white-space: nowrap;
}

/* Scrollbar styling */
.meat-cart::-webkit-scrollbar {
    width: 6px;
}

.meat-cart::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.meat-cart::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.meat-cart::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 8px;
    text-align: center;
    background: rgba(231, 76, 60, 0.1);
    padding: 8px;
    border-radius: 6px;
}

.success-message {
    background: #2ecc71;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    animation: slideIn 0.3s ease;
}

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

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.5rem;
    }
}

:root {
    --primary-color: #e74c3c;
    --secondary-color: #d35400;
    --accent-color: #f39c12;
    --bg-color: #f8f9fa;
    --text-color: #2c3e50;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --success-color: #27ae60;
    --danger-color: #c0392b;
    --border-radius: 8px;
    --input-bg: #fafafa;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

/* Animated background elements */
.bg-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
    z-index: 0;
}

.bg-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
}

.bg-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, 30px);
    }
}

.admin-container {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .admin-container {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.card-title {
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title span {
    font-size: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--input-bg);
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.time-picker-wrapper {
    display: flex;
    gap: 10px;
}

.time-picker-wrapper input {
    flex: 1;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 100%;
}

.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-danger:hover {
    background: #a93226;
}

/* User Table */
.table-container {
    overflow-x: auto;
    margin-top: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th {
    background: #f8f9fa;
    color: var(--text-color);
    font-weight: 700;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #eee;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f1f1;
    color: #555;
    vertical-align: middle;
}

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

.user-actions {
    display: flex;
    gap: 8px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background: rgba(39, 174, 96, 0.15);
    color: var(--success-color);
}

.status-inactive {
    background: rgba(189, 189, 189, 0.15);
    color: #7f8c8d;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
    font-style: italic;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-color);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--danger-color);
}

.min-col {
    width: 1%;
}
