/* --- FONTURI & FUNDAL GLOBAL --- */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f2f2f2;
  color: #333;
  margin: 0;
  padding: 20px;
}

/* --- CONTAINER CENTRAL --- */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* --- TITLURI --- */
h2 {
  color: #2765A0;
  margin-bottom: 25px;
}

/* --- TABEL GENERAL --- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

th {
  background: linear-gradient(to bottom, #3883c4, #2765A0);
  color: white;
  padding: 12px;
  text-shadow: 1px 1px 1px #00000033;
  font-weight: normal;
}

td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

td input[type="number"] {
  padding: 6px;
  width: 70px;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

/* --- BUTOANE --- */
button, .btn {
  background: linear-gradient(to bottom, #59a4d9, #2765A0);
  color: white;
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 0 #1c4e7a;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover, .btn:hover {
  background: linear-gradient(to bottom, #2765A0, #59a4d9);
}

/* --- MESAJ INFORMATIV AJAX --- */
#mesaj,
#message {
  padding: 10px;
  margin: 10px 0;
  display: inline-block;
  border-radius: 5px;
  font-weight: bold;
}

#message.success {
  background-color: #d4edda;
  color: #155724;
}

#message.error {
  background-color: #f8d7da;
  color: #721c24;
}

/* --- TOP BAR --- */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* --- BUTOANE DEDICATE --- */
.btn.logout {
  background-color: #a83232;
}

.btn.excel {
  background-color: #4CAF50;
}

.btn.pdf {
  background-color: #FF9800;
}

.btn-small {
  background: #ccc;
  color: #000;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  text-decoration: none;
}

/* --- FORMULARE --- */
form {
  margin-bottom: 20px;
}

select, input[type="number"], button {
  padding: 6px 10px;
  margin-right: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* --- STRUCTURĂ PE SĂPTĂMÂNI --- */
.week-block {
  border-top: 1px solid #ccc;
  padding-top: 15px;
  margin-top: 20px;
}

/* --- BUTON MIC DE LÂNGĂ NUMERE --- */
.small-btn {
  margin-left: 10px;
  font-size: 12px;
}

/* --- TEXT STATUS --- */
.status-text {
  margin-top: 5px;
  font-size: 14px;
  color: #333;
}


.small-text {
    font-size: 0.8em;
    color: #666;
}
.available-spaces {
    font-weight: bold;
    color: #28a745;
}



.msg {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-weight: bold;
    position: relative;
    transition: opacity 0.5s ease;
}
.msg.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.msg.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.close-message {
    font-size: 1.2em;
    line-height: 0.8;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.close-message:hover {
    opacity: 1;
}

.agency-list {
    margin-top: 5px;
    font-size: 0.85em;
    color: #555;
}
