* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}
:root {
    --bg-main: #0f0f0f;
    --bg-secondary: #1e1e1e;
    --bg-hover: #2b2b2b;
    --bg-table: #1a1a1a;
    --bg-th: #222222;
    --text-main: #ffffff;
    --text-secondary: #aaaaaa;
    --primary: #d35b5b;
    --primary-hover: #ff6b6b;
    --success: #2ecc71;
    --success-hover: #27ae60;
    --info: #3498db;
    --info-hover: #2980b9;
    --danger: #e74c3c;
    --danger-hover: #c0392b;
    --border-color: #333333;
}
body.light {
    --bg-main: #f4f4f4;
    --bg-secondary: #ffffff;
    --bg-hover: #eaeaea;
    --bg-table: #ffffff;
    --bg-th: #e0e0e0;
    --text-main: #000000;
    --text-secondary: #555555;
    --primary: #4a90e2;
    --primary-hover: #357abd;
    --success: #27ae60;
    --success-hover: #1e8449;
    --info: #2980b9;
    --info-hover: #1f618d;
    --danger: #c0392b;
    --danger-hover: #922b21;
    --border-color: #dddddd;
}
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: 0.3s ease;
}
.container {
    width: 80%;
    margin: auto;
    padding: 20px;
}
h1 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 5px;
}
.subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-secondary);
}
.mode-btn {
    padding: 8px 15px;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-main);
    border-radius: 20px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: 0.3s;
}
.mode-btn:hover {
    background: var(--bg-hover);
}
input, select {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    background: var(--bg-secondary);
    border: none;
    outline: none;
    color: var(--text-main);
    border-radius: 6px;
    transition: 0.3s;
}
input:focus, select:focus {
    background: var(--bg-hover);
    transform: scale(1.01);
    -webkit-transform: scale(1.01);
    -moz-transform: scale(1.01);
    -ms-transform: scale(1.01);
    -o-transform: scale(1.01);
}
.price-section,
.count-category,
.search-box {
    display: flex;
    gap: 10px;
}
.price-section input {
    flex: 1;
}
.main-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: var(--primary);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    color: white;
    transition: 0.3s;
}
.main-btn:hover {
    background: var(--primary-hover);
}
.total-btn {
    background: var(--danger);
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}
.total-btn:hover {
    background: var(--danger-hover);
}
.search-section {
    margin-top: 40px;
}
.search-section h2 {
    text-align: center;
    margin-bottom: 15px;
}
.search-box select {
    width: 30%;
}
.search-box input {
    width: 70%;
}
.products-section {
    margin-top: 40px;
}
.products-section h2 {
    text-align: center;
    margin-bottom: 15px;
}
.table {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-table);
}
th, td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
th {
    background: var(--bg-th);
}
tr.none {
    display: none;
}
tr {
    transition: 0.3s ease;
    -webkit-transition: 0.3s ease;
    -moz-transition: 0.3s ease;
    -ms-transition: 0.3s ease;
    -o-transition: 0.3s ease;
}
tr.done {
    opacity: 0.6;
    transform: scale(0.98);
}
td button {
    padding: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    color: black;
    transition: 0.3s ease;
    font-weight: bold;
}
.complete {
    background: var(--success);
}
.complete:hover {
    background: var(--success-hover);
}
.updata {
    background: var(--info);
}
.updata:hover {
    background: var(--info-hover);
}
.delete {
    background: var(--danger);
}
.delete:hover {
    background: var(--danger-hover);
}
.delete-all {
    width: 100%;
    padding: 12px;
    margin-bottom: 7px;
    background: var(--danger);
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}
.delete-all:hover {
    background: var(--danger-hover);
}
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}
footer span {
    color: var(--primary);
}
/* Responsive */
@media (max-width: 1024px) {
    .container {
        width: 90%;
        padding: 15px;
    }
    h1 {
        font-size: 32px;
    }
    .price-section,
    .count-category,
    .search-box {
        flex-wrap: wrap;
    }
    .search-box select,
    .search-box input {
        width: 100%;
    }
}
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }
    .subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .price-section input,
    .count-category input {
        flex: 1 1 100%;
    }
    td button {
        padding: 10px;
        font-size: 11px;
    }
    .total-btn {
        text-align: left;
        width: 100%;
        font-size: 14px;
        padding: 10px;
        margin-bottom: 5px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }
    .main-btn,
    .total-btn,
    .delete-all {
        font-size: 14px;
        padding: 10px;
    }
    table th,
    table td {
        padding: 8px;
        font-size: 12px;
    }
    .price-section,
    .count-category,
    .search-box {
        gap: 5px;
    }
}