
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.login-box {
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #54B952;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 5px;
    background: #2d2d2d;
    color: #e0e0e0;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #54B952;
}

button {
    width: 100%;
    padding: 0.75rem;
    background: #54B952;
    color: #0a0a0a;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #54B952;
}

.error {
    background: #ff4757;
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}


.main-content {
    margin-left: 250px;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.user-info {
    color: #54B952;
    font-weight: bold;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: #1e1e1e;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.card h3 {
    color: #54B952;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 2rem;
    font-weight: bold;
}

.search-box {
    margin-bottom: 2rem;
}

.search-box input {
    width: 70%;
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 5px 0 0 5px;
    background: #2d2d2d;
    color: #e0e0e0;
}

.search-box button {
    width: 30%;
    border-radius: 0 5px 5px 0;
}

.form-section {
    background: #1e1e1e;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.form-section h3 {
    color: #54B952;
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row input, .form-row textarea {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 5px;
    background: #2d2d2d;
    color: #e0e0e0;
}

.form-row textarea {
    min-height: 80px;
    resize: vertical;
}

.table-section {
    background: #1e1e1e;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
}

.table-section h3 {
    color: #54B952;
    margin-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background: #2d2d2d;
    color: #54B952;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.edit-btn, .delete-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    width: auto;
}

.edit-btn {
    background: #ffa502;
}

.edit-btn:hover {
    background: #e59400;
}

.delete-btn {
    background: #ff4757;
}

.delete-btn:hover {
    background: #ff3742;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #1e1e1e;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .search-box input {
        width: 100%;
        border-radius: 5px;
        margin-bottom: 0.5rem;
    }
    
    .search-box button {
        width: 100%;
        border-radius: 5px;
    }
}

.success {
    background: #2ed573;
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

select {
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 5px;
    background: #2d2d2d;
    color: #e0e0e0;
    font-size: 1rem;
}

select:focus {
    outline: none;
    border-color: #54B952;
}

input[type="date"] {
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 5px;
    background: #2d2d2d;
    color: #e0e0e0;
    font-size: 1rem;
}

input[type="number"] {
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 5px;
    background: #2d2d2d;
    color: #e0e0e0;
    font-size: 1rem;
}