/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 960px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

header h1 {
    margin: 0;
    font-size: 24px;
    color: #1a202c;
}

/* Forms */
form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4a5568;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #4299e1;
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    margin-right: 10px;
}

/* Buttons */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background-color: #4299e1;
    color: white;
}
.btn-primary:hover { background-color: #3182ce; }

.btn-danger {
    background-color: #e53e3e;
    color: white;
}
.btn-danger:hover { background-color: #c53030; }

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.save-status {
    margin-left: 15px;
    font-weight: 600;
}

/* Items List (Admin Page) */
.item-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}
.item-row .item-name { flex: 3; }
.item-row .item-buy, .item-row .item-sell { flex: 1; }

/* Table (Super Admin) */
.table-container {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
thead {
    background-color: #edf2f7;
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
td .btn { margin-right: 5px; }
.status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}
.status-active { background-color: #c6f6d5; color: #2f855a; }
.status-inactive { background-color: #fed7d7; color: #9b2c2c; }
.status-suspended { background-color: #feebc8; color: #9c4221; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}
.close-btn {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* Login Form */
.login-form {
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
}
.error-message {
    color: #e53e3e;
    margin-bottom: 15px;
    font-weight: 600;
}