/* public/css/main.css */

/* ==========================
   GLOBAL LAYOUT
   ========================== */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #111;
    color: #fff;
}

.sidebar {
    width: 220px;
    background: #1b1b1b;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}

.sidebar h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 22px;
}

.sidebar a {
    display: block;
    padding: 14px 18px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    transition: 0.2s;
}

.sidebar a:hover {
    background: #333;
}

.content {
    margin-left: 240px;
    padding: 25px;
}

/* ==========================
   BUTTONS
   ========================== */
.btn {
    display: inline-block;
    padding: 8px 14px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.2s;
}

.btn:hover {
    background: #45a049;
}

.btn-red {
    background: #b30000;
    color: #fff;
}

.btn-red:hover {
    background: #990000;
}

/* ==========================
   CARDS (Dashboard)
   ========================== */
.cards {
    display: flex;
    gap: 20px;
}

.card {
    background: #1c1c1c;
    padding: 20px;
    flex: 1;
    border-radius: 8px;
    box-shadow: 0 0 10px #000;
    text-align: center;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* ==========================
   TABLES
   ========================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th {
    background: #222;
    color: #fff;
    padding: 12px;
    text-align: left;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #333;
}

/* ==========================
   FORMS
   ========================== */
.form-box {
    background: #1c1c1c;
    padding: 25px;
    border-radius: 8px;
    width: 450px;
    box-shadow: 0 0 10px #000;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background: #2a2a2a;
    color: white;
}

/* ==========================
   MODAL
   ========================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1c1c1c;
    padding: 20px;
    width: 420px;
    border-radius: 8px;
    box-shadow: 0 0 10px #000;
}

/* ==========================
   CHART BOX
   ========================== */
.chart-box {
    background: #1c1c1c;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px #000;
    margin-top: 25px;
    text-align: center;
}
