* {
    margin:0;
    padding:0;
    box-sizing:border-box;
}
body {
    font-family:Arial,sans-serif;
    background:#f0f2f5;
}
.login-body {
    display:flex;
    align-items:center;
    justify-content:center;
    height:100vh;
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
}
.login-box {
    width:400px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 8px 30px rgba(0,0,0,0.1);
    padding:40px;
}
.login-box h2 {
    text-align:center;
    margin-bottom:30px;
    color:#333;
}
.input-item {
    margin-bottom:20px;
}
.input-item label {
    display:block;
    margin-bottom:8px;
    font-size:14px;
    color:#555;
}
.input-item input {
    width:100%;
    height:44px;
    padding:0 15px;
    border:1px solid #ddd;
    border-radius:6px;
    font-size:15px;
}
.btn-submit {
    width:100%;
    height:46px;
    background:#667eea;
    color:#fff;
    border:none;
    border-radius:6px;
    font-size:16px;
    cursor:pointer;
}
.btn-submit:hover {
    background:#5a6edb;
}

/* DASHBOARD LAYOUT */
body {
    overflow:hidden;
}
.admin-wrapper {
    display:flex;
    height:100vh;
}
.sidebar {
    width:240px;
    background:#2f4050;
    color:#fff;
    flex-shrink:0;
    overflow-y:auto;
}
.sidebar .logo {
    height:65px;
    line-height:65px;
    text-align:center;
    font-size:18px;
    background:#1ab394;
    font-weight:bold;
}
.sidebar ul {
    list-style:none;
    padding:20px 0;
}
.sidebar ul li a {
    display:block;
    padding:14px 25px;
    color:#c7c7c7;
    text-decoration:none;
    font-size:15px;
}
.sidebar ul li a.active {
    background:#263442;
    color:#fff;
    border-left:4px solid #1ab394;
}
.sidebar ul li a:hover {
    background:#263442;
    color:#fff;
}
.main {
    flex:1;
    display:flex;
    flex-direction:column;
}
.header {
    height:65px;
    background:#fff;
    border-bottom:1px solid #e6e6e6;
    line-height:65px;
    padding:0 25px;
    display:flex;
    justify-content:space-between;
    font-size:14px;
}
.content {
    flex:1;
    padding:25px;
    background:#f3f3f4;
    overflow-y:auto;
}
.panel {
    background:#fff;
    border-radius:8px;
    padding:25px;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
}
.stat-card {
    background:#fff;
    padding:25px;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
    text-align:center;
}
.stat-icon {
    font-size:32px;
    display:block;
    margin-bottom:10px;
}
.stat-value {
    display:block;
    font-size:28px;
    font-weight:bold;
    color:#333;
}
.stat-label {
    display:block;
    font-size:14px;
    color:#999;
    margin-top:5px;
}

/* TABLE STYLES */
table.data-table {
    width:100%;
    border-collapse:collapse;
    font-size:14px;
}
table.data-table th,
table.data-table td {
    padding:12px 15px;
    text-align:left;
    border-bottom:1px solid #e6e6e6;
}
table.data-table th {
    background:#f7f7f7;
    font-weight:bold;
    color:#666;
    white-space:nowrap;
}
table.data-table tbody tr:hover {
    background:#f5f5f5;
}
table.data-table tbody tr:last-child td {
    border-bottom:none;
}

/* BUTTONS */
.btn {
    padding:8px 16px;
    border:none;
    border-radius:4px;
    cursor:pointer;
    font-size:14px;
    transition:background-color 0.2s;
    text-decoration:none;
    display:inline-block;
    text-align:center;
}
.btn-primary {
    background:#1ab394;
    color:#fff;
}
.btn-primary:hover {
    background:#18a689;
}
.btn-secondary {
    background:#999;
    color:#fff;
}
.btn-secondary:hover {
    background:#888;
}
.btn-info {
    background:#667eea;
    color:#fff;
}
.btn-info:hover {
    background:#5a6edb;
}
.btn-danger {
    background:#f44336;
    color:#fff;
}
.btn-danger:hover {
    background:#e53935;
}
.btn-sm {
    padding:4px 10px;
    font-size:12px;
}

/* TAG BUTTONS */
.tag-btn {
    padding:6px 12px;
    background:#f0f2f5;
    border:1px solid #ddd;
    border-radius:20px;
    cursor:pointer;
    font-size:13px;
    color:#666;
    transition:all 0.2s;
}
.tag-btn:hover {
    background:#e0e2e5;
    border-color:#ccc;
}
.tag-btn.selected {
    background:#1ab394;
    border-color:#1ab394;
    color:#fff;
}

/* FORM STYLES */
.form-group {
    margin-bottom:16px;
}
.form-group label {
    display:block;
    margin-bottom:8px;
    font-size:14px;
    color:#555;
    font-weight:500;
}
.form-group input,
.form-group select,
.form-group textarea {
    width:100%;
    padding:10px 12px;
    border:1px solid #ddd;
    border-radius:6px;
    font-size:14px;
    transition:border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline:none;
    border-color:#1ab394;
}
.form-group textarea {
    resize:vertical;
    min-height:100px;
}

.search-input {
    padding:8px 12px;
    border:1px solid #ddd;
    border-radius:6px;
    font-size:14px;
    min-width:200px;
    transition:border-color 0.2s;
}
.search-input:focus {
    outline:none;
    border-color:#1ab394;
}

/* STATUS BADGES */
.status-active {
    color:#1ab394;
    font-weight:bold;
}
.status-disabled {
    color:#f44336;
    font-weight:bold;
}

/* PAGINATION */
.pagination {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin-top:20px;
}
.pagination button {
    padding:6px 14px;
    border:1px solid #ddd;
    background:#fff;
    border-radius:4px;
    cursor:pointer;
    font-size:14px;
}
.pagination button:hover:not(:disabled) {
    background:#f0f0f0;
}
.pagination button:disabled {
    opacity:0.5;
    cursor:not-allowed;
}
.pagination span {
    font-size:14px;
    color:#666;
}

/* CARD */
.card {
    background:#fff;
    border-radius:8px;
    padding:25px;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

/* TAG ITEM (for product tags selection) */
.tag-item {
    display:inline-block;
    padding:6px 12px;
    background:#f0f2f5;
    border:1px solid #ddd;
    border-radius:20px;
    cursor:pointer;
    font-size:13px;
    color:#666;
    transition:all 0.2s;
}
.tag-item:hover {
    background:#e0e2e5;
    border-color:#ccc;
}
.tag-item.selected {
    background:#1ab394;
    border-color:#1ab394;
    color:#fff;
}

/* ALERT */
.alert {
    padding:12px 16px;
    border-radius:6px;
    margin-bottom:16px;
}
.alert-success {
    background:#d4edda;
    color:#155724;
    border:1px solid #c3e6cb;
}
.alert-danger {
    background:#f8d7da;
    color:#721c24;
    border:1px solid #f5c6cb;
}
.alert-warning {
    background:#fff3cd;
    color:#856404;
    border:1px solid #ffeeba;
}

/* FORM ROW */
.form-row {
    display:flex;
    gap:20px;
    margin-bottom:16px;
}
.form-row .form-group {
    flex:1;
}

/* STOCK WARNING */
.stock-warning {
    color: #e74c3c;
    font-weight: 500;
}
.stock-low {
    color: #f39c12;
    font-weight: 500;
}
.stock-ok {
    color: #27ae60;
}
