
body {
    font-family: Arial, sans-serif;
    margin: 30px;
    background-image: url("../img/Nature2.png");

    background-attachment: fixed;
}
/* Positioning: Dashboard button is left of the logout button */

h1 {
    /* Pentru centrare, folosim margin auto și inline-block */
    margin: 4rem auto 20px auto;
    display: inline-block;
    color:rgb(0, 0, 0);
    background-color: #f0f0f0de;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}
.dashboard-btn,
.logout-btn {
  position: absolute;
  top: 20px;
  /* Common button styling */
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Positioning: Dashboard button is left of the logout button */
.dashboard-btn {
  right: 150px; /* Adjust for spacing */
  background-color: #2196F3; /* Blue */
}

.dashboard-btn:hover {
  background-color: #1976D2; 
  transform: translateY(-1px);
}

.dashboard-btn:active {
  background-color: #1565C0;
  transform: translateY(1px);
}

/* Logout button to the far right */
.logout-btn {
  right: 20px;
  background-color: #f44336; /* Red */
}

.logout-btn:hover {
  background-color: #d32f2f;
  transform: translateY(-1px);
}

.logout-btn:active {
  background-color: #b71c1c;
  transform: translateY(1px);
}

.container {
    /* Centrarea containerului */
    margin: 0 auto;
    max-width: 84%;
    background: #f6eeffed;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}

/* Buton "Adaugă Utilizator" */
.add-user-btn {
    display: inline-flex;
    align-items: center;
    background: #28a745;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background 0.3s;
}
.add-user-btn:hover {
    background: #218838;
}
.add-user-btn i {
    margin-right: 6px;
}

/* Tabel Utilizatori */
table {
    /* Centrare orizontală */
    margin: 1rem auto;
    width: 80%;
    border-collapse: collapse;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    background-color: #fff;
}
th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}
/* Header Tabel */
th {
    background: #904293;
    color: #fff;
}
/* Hover pe rând */
tbody tr:hover {
    background-color: #f9e9ff;
}

/* Link de sortare */
th a {
    color: inherit;
    text-decoration: none;
}
th a:hover {
    text-decoration: underline;
}
.sort-icon {
    margin-left: 5px;
    font-size: 1rem;
    vertical-align: middle;
}

/* Iconițe acțiuni */
.action-icons {
    display: flex;
    gap: 10px;
}
.action-icons a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.action-icons a:hover {
    color: #da1b1b;
}

/* Modal (suprascriere) */
.modal-overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none; /* ascuns implicit */
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.modal {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}
.modal h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #b65db9;
}
.modal form {
    display: flex;
    flex-direction: column;
}
.modal label {
    margin: 8px 0 4px;
    font-weight: bold;
}
.modal input[type="text"],
.modal input[type="email"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.modal .buttons {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.modal .buttons button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.save-btn {
    background: #007bff;
    color: #fff;
    transition: background 0.3s;
}
.save-btn:hover {
    background: #0069d9;
}
.cancel-btn {
    background: #6c757d;
    color: #fff;
    transition: background 0.3s;
}
.cancel-btn:hover {
    background: #5a6268;
}

/* Buton (X) de închidere modal */
.close-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
}
.close-icon:hover {
    color: #333;
}
@keyframes rainbow {
    0% { color: red; }
    14% { color: orange; }
    28% { color: yellow; }
    42% { color: green; }
    57% { color: blue; }
    71% { color: indigo; }
    85% { color: violet; }
    100% { color: red; }
}

.rainbowtext {
    font-size: 1.5rem;
    font-weight: bold;
    animation: rainbow 2s infinite linear;
}