/* Resetare stiluri implicite */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Container principal */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.logo-container img {
    width: 150px; /* ✅ Fixează lățimea */
    height: auto; /* ✅ Păstrează proporțiile */
    display: block;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.card-section {
    background-color: #ffffff;
    border-left: 5px solid #007bff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 700px;
    padding: 20px;
    margin-bottom: 20px;
}

.card-section h3 {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-programare {
    background-color: #f1f7ff;
    border: 1px solid #d6e4f5;
    border-radius: 10px;
    padding: 12px 15px;
    margin-top: 10px;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.card-programare i {
    margin-right: 6px;
    color: #007bff;
}
.fara-programari {
    background-color: #e9f4ff;
    border: 1px dashed #8cb8e8;
    padding: 10px 15px;
    border-radius: 8px;
    color: #333;
}

/* Titlu programer */
.titlu-centru {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

/* Calendar */
.calendar-icon-dinamic {
  display: inline-block;
  width: 70px;
  height: 70px;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  background: #fff;
  margin-right: 16px;
  text-align: center;
  border: 2px solid #e2e2e2;
  position: relative;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.calendar-luna {
  background: #c33;
  color: #fff;
  font-size: 13px;
  padding: 6px 0 2px 0;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
  font-weight: bold;
  letter-spacing: 2px;
}
.calendar-zi {
  font-size: 24px;
  color: #323232;
  font-weight: bold;
  margin-top: 4;
  line-height: 1.8;
}


.titlu-centru {
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
}
.centru-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  width: 100%;
}

/* Titlu principal */
h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Formular de căutare */
form {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

input[type="text"] {
    padding: 10px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.search-button {
    padding: 10px 15px;
    background: #0099cc;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-left: 10px;
}

.search-button:hover {
    background: #0e88ca;
}

/* Tabel responsive */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

th {
    background: #08296c;
    color: white;
}

td {
    background: #fff;
}

/* Imagini din tabel */
.poza-tabel {
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s ease-in-out;
}

.poza-tabel:hover {
    transform: scale(1.2);
}

/* Linkuri pentru documente */
a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    text-decoration: underline;
}

/* statistics */
.dashboard-stats {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin: 36px 0 30px 0;
    flex-wrap: wrap;
}
.stat-card-link {
    text-decoration: none !important;
}
.stat-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px #3f5d9933;
    padding: 32px 36px 26px 36px;
    min-width: 220px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.15s, transform 0.1s;
    cursor: pointer;
    position: relative;
}
.stat-card:hover {
    box-shadow: 0 8px 32px #1e90ff44;
    transform: translateY(-5px) scale(1.02);
}
.stat-icon {
    font-size: 2.5em;
    margin-bottom: 16px;
    color: #1e90ff;
}
.stat-icon.total {
    color: #1060cc;
}
.stat-title {
    font-size: 1.08em;
    color: #384863;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.01em;
}
.stat-value {
    font-size: 2.7em;
    font-weight: bold;
    color: #1060cc;
    text-align: center;
    letter-spacing: -2px;
}
@media (max-width: 900px) {
    .dashboard-stats {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .stat-card {
        width: 90vw;
        min-width: 0;
        padding: 20px 0;
    }
}

.filtru-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Selectare medic */
.dropdown-filtru {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
}

.filtru-form {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: 'Segoe UI', sans-serif;
}

.filtru-label {
  font-size: 1.1rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-medic {
  padding: 8px 12px;
  font-size: 1rem;
  border: 2px solid #ccc;
  background-color: white;
  color: #333;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='black' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  padding-right: 30px;
  border-radius: 6px;
}

.select-medic:focus {
  border-color: #007bff;
  outline: none;
}

.btn-filtru {
  padding: 8px 14px;
  font-size: 1rem;
  background-color: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
}

.btn-filtru:hover {
  background-color: #007bff;
}


/* Butoane index */
.index-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 40px; /* sau cât dorești, ex. 60px */
}

.btn-action {
    background: #155193; /* Albastru */
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease;
    border: 0.5px solid #169191; /* Dungă roz de 0.5px */
}

/* Efect hover pentru o tranziție vizuală plăcută */
.btn-action:hover {
    background: #0e88ca;
    border-color: #D96A9A; /* Schimbă ușor nuanța la hover */
}


/* Ajustare dimensiune butoane de acțiune */
.index-act-container {
    display: flex;
    justify-content: center;
    gap: 3px;
}

.index-act {
    padding: 5px 8px; /* Reducem padding-ul */
    font-size: 12px; /* Micșorăm textul */
    display: flex;
    align-items: center;
    gap: 3px;
    border-radius: 5px;
    white-space: nowrap; /* Evităm trecerea pe rând nou */
    width: auto; /* Adaptabil la conținut */
}

/* Ajustare iconițe din butoane */
.index-act img, .index-act svg {
    width: 14px; /* Reducem dimensiunea iconițelor */
    height: 14px;
}

/* Ajustare lățime pentru coloana acțiuni */
td[data-label="Acțiuni"] {
    width: 120px; /* Setăm o lățime mai mică */
    text-align: center;
}

/* Butoanele de acțiune mai compacte */
.index-act {
    background: #17a2b8;
    color: white;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.index-act:hover {
    background: #138496;
}


/* Logout */
.btn-action:last-child {
    background: #08296c;
}

.btn-action:last-child:hover {
    background: #0e88ca;
}

/* Logo */
.logo {
    display: block;
    margin: 20px auto;
    max-width: 150px;
}

.notificari-programari {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 20px auto 30px;
    padding: 0 20px;
    max-width: 1200px;
}

.notificare-col {
    flex: 1;
    background: #ffffff;
    border-left: 4px solid #007bff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.alerta-programare {
    background: #eaf4ff;
    border: 1px solid #cce0ff;
    border-left: 5px solid #3399ff;
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.btn-dashboard {
    background: #155193;
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    margin: 0 10px;
    transition: background 0.15s, transform 0.09s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-dashboard.btn-small {
    font-size: 16px;
    padding: 7px 20px;
    border-radius: 6px;
    min-width: unset;
    margin-top: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.btn-dashboard:hover,
.btn-dashboard:focus {
    background: #005ecb;
    color: #fff;
    transform: translateY(-2px) scale(1.03);
}


/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    form {
        flex-direction: column;
        align-items: center;
    }

    input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-button {
        width: 100%;
    }

    table {
        font-size: 14px;
    }

    .index-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-action {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
  .filtru-form {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .dropdown-filtru {
    width: 100%;
    justify-content: center;
  }

  .select-medic,
  .btn-filtru {
    width: 100%;
    max-width: 300px;
  }

  .filtru-label {
    font-size: 1rem;
    justify-content: center;
  }
}
