:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --link-color: #007bff;
    --link-hover-color: #0056b3;
    --card-bg-color: #ffffff;
    --card-text-color: #333333;
    --navbar-size: 270px;
    --navbar-hidden-size: -270px;
    --background: linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
}

/* Dark theme */
[data-theme='dark'] {
    --bg-color: #333333;
    --text-color: #ffffff;
    --link-color: #bb86fc;
    --link-hover-color: #3700b3;
    --card-bg-color: #444444; /* Darker color for cards in dark mode */
    --card-text-color: #ffffff;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.card {
    background-color: var(--card-bg-color);
    color: var(--card-text-color);
}

.card-header, .card-footer {
    background-color: rgba(0, 0, 0, 0.03);
}

[data-theme='dark'] .card-header, [data-theme='dark'] .card-footer {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

th, td {
    padding: 10px 15px;
    text-align: left;
    color: var(--text-color);
}

thead tr {
    background-color: #009879;
    color: var(--text-color);
}

tbody tr {
    border-bottom: 1px solid #dddddd;
}

tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

[data-theme='dark'] tbody tr:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0.5);
}

tbody tr:last-of-type {
    border-bottom: none;
}

tbody tr:hover {
    background-color: #e0e0e0;
}

[data-theme='dark'] tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Responsive design */
@media screen and (max-width: 600px) {
    table {
        border: 0;
    }

    table thead {
        display: none; /* Hide headers */
    }

    table tr {
        margin-bottom: 0.625em;
        display: block;
        border-bottom: 2px solid #ddd;
    }

    table td {
        display: block;
        text-align: right;
        font-size: 0.8em;
        border-bottom: 1px dotted #ccc;
    }

    table td:last-child {
        border-bottom: 0;
    }

    table td::before {
        content: attr(data-label);
        float: left;
        text-transform: uppercase;
        font-weight: bold;
        color: var(--text-color);
    }
}

/* Footer */
.floating-btn { /* butonul pentru dark mode */
    position: fixed;   /* This makes the button's position relative to the viewport */
    bottom: 20px;      /* 20 pixels from the bottom */
    right: 20px;       /* 20 pixels from the right */
    padding: 10px 20px;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);  /* A little shadow for aesthetics */
}

