html {
    background-color: var(--bg-color);
}

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --container-bg: #f0f0f0;
    --card-bg: #ffffff;
    --highlight-color: #007bff;
  }

  body.dark-mode {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --container-bg: #1e1e1e;
    --card-bg: #1e1e1e;
    --highlight-color: #66b2ff;
  }

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}

.logo {
    width: 100px;
    height: auto;
}

.container {
    width: 80%;
    max-width: 1000px;
    padding: 20px;
    background-color: var(--container-bg);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
    text-align: center;
}

h1 {
    margin-bottom: 20px;
    font-size: 32px;
    color: var(--highlight-color);
}

/* Add the following block */
.theme-toggle {
    position: absolute;
    top: 10px;
    left: 10px;
}
.theme-toggle button {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    background-color: var(--highlight-color);
    color: var(--text-color);
    cursor: pointer;
}
.theme-toggle button:hover {
    background-color: #0056b3;
}

.dashboard-section {
    margin-bottom: 30px;
}

.dashboard-btn-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-btn {
    padding: 20px;
    background-color: #28a745;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    width: 150px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.dashboard-btn:hover {
    background-color: #218838;
}

.logout-btn {
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #dc3545;
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #c82333;
}

.version-button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: var(--highlight-color);
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.version-button:hover {
    background-color: #0056b3;
}

@media (max-width: 600px) {
    /* make top buttons flow in document order */
    .theme-toggle,
    .settings-panel,
    .version-button {
      position: static !important;
      margin: 8px auto;
      display: block;
      text-align: center;
    }
  
    /* give the settings‑panel a little breathing room */
    .settings-panel {
      margin-bottom: 16px;
    }  

    .dashboard-btn {
        width: 80%;
    }
}

form input[type="text"],
form input[type="date"],
form input[type="url"],
form textarea,
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

form textarea {
    resize: vertical;
}

form button {
    width: 100%;
    padding: 12px;
    background-color: var(--highlight-color);
    color: var(--text-color);
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

form button:hover {
    background-color: #0056b3;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 20px;
    }

    form input[type="text"],
    form input[type="date"],
    form input[type="url"],
    form textarea,
    form select,
    form button {
        font-size: 14px;
    }

    form button {
        padding: 10px;
    }
}
/* Calves Page Specific Styles */
.calves-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.action-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-filters select,
.action-filters input {
    padding: 8px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: var(--text-color);
}

.calves-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.calf-item {
    background-color: var(--card-bg);
    border: 3px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
}

.calf-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.calf-info strong {
    font-size: 18px;
}

.calf-info span {
    display: block;
    font-size: 14px;
    color: var(--text-color);
}

.calf-actions .action-button {
    padding: 8px 12px;
    background-color: #28a745;
    color: var(--text-color);
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 10px;
}

.calf-actions .edit-button {
    background-color: var(--highlight-color);
}

.calf-actions .edit-button:hover {
    background-color: #0056b3;
}

.calf-actions .action-button:hover {
    background-color: #218838;
}

.search-bar {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.no-results {
    text-align: center;
    color: #666;
    margin-top: 20px;
    font-size: 18px;
}

/* Dropdown Styling */
.actions-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background-color: #4CAF50;
    color: var(--text-color);
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(255, 255, 255, 0.5);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-item,
form button.dropdown-item,
button.dropdown-item {
    color: var(--text-color);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    background-color: #4CAF50;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    width: 100%;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
}

.dropdown-item:hover,
form button.dropdown-item:hover,
button.dropdown-item:hover {
    background-color: #218838;
}

.actions-dropdown:hover .dropdown-content {
    display: block;
}

/* History Modal */
#historyModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000000;
    color: var(--text-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.5);
    z-index: 1000;
}

#closeModal {
    margin-top: 10px;
    background-color: var(--highlight-color);
    color: var(--text-color);
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .calves-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .action-filters {
        flex-direction: column;
        width: 100%;
    }

    .action-filters select,
    .action-filters input {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .calf-info strong {
        font-size: 16px;
    }

    .calf-info span {
        font-size: 12px;
    }

    .calf-actions .action-button {
        padding: 6px 10px;
        font-size: 12px;
    }
}
/* ===================== */
/* View Cows Page Styles */
/* ===================== */

.cows-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.cows-actions a,
.cows-actions form button {
    width: 100%;
    max-width: 200px;
    padding: 10px;
    background-color: var(--highlight-color);
    color: var(--text-color);
    text-align: center;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    margin: 5px 0;
}

.cows-actions a:hover,
.cows-actions form button:hover {
    background-color: #0056b3;
}

.cows-actions form input[type="file"] {
    width: 100%;
    max-width: 200px;
    margin: 5px 0;
}

.cows-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.cow-item {
    background-color: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
}

.cow-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.cow-info strong {
    font-size: 18px;
}

.cow-info span {
    display: block;
    font-size: 14px;
    color: var(--text-color);
}

.cow-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    margin-left: 20px;
}

.cow-actions .action-button {
    padding: 8px 12px;
    background-color: #28a745;
    color: var(--text-color);
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 10px;
}

.cow-actions .edit-button {
    background-color: var(--highlight-color);
}

.cow-actions .edit-button:hover {
    background-color: #0056b3;
}

.cow-actions .action-button:hover {
    background-color: #218838;
}

.search-box {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.search-box input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 300px;
}

.search-box input:focus {
    border-color: var(--highlight-color);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.no-results {
    text-align: center;
    font-size: 18px;
    color: #666;
}

.flash-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
}

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

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

.filter-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-dropdown {
    padding: 8px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: var(--text-color);
}

#cow-search {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.actions-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background-color: #4CAF50;
    color: var(--text-color);
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(255, 255, 255, 0.5);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-item,
.dropdown-content form button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    background-color: #4CAF50;
    color: var(--text-color);
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    box-sizing: border-box;
}

.dropdown-content .dropdown-item:hover,
.dropdown-content form button:hover {
    background-color: #218838;
}

.dropdown-item {
    color: var(--text-color);
    background-color: #4CAF50;
}

.actions-dropdown:hover .dropdown-content {
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

th {
    background-color: var(--container-bg);
}

.history-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000000;
    color: var(--text-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
    z-index: 1000;
}

.history-modal .closeModal {
    margin-top: 10px;
    background-color: var(--highlight-color);
    color: var(--text-color);
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 600px) {
    h1 {
        font-size: 20px;
    }

    .cow-info strong {
        font-size: 16px;
    }

    .cow-info span {
        font-size: 12px;
    }

    .cow-actions .action-button {
        padding: 6px 10px;
        font-size: 12px;
    }

    .cows-actions {
        flex-direction: column;
        align-items: center;
    }

    .cows-actions a,
    .cows-actions form button {
        max-width: 100%;
        margin-bottom: 10px;
    }

    .cows-actions form input[type="file"] {
        max-width: 100%;
    }
}
/* ============================== */
/* View Journal Entries Page CSS */
/* ============================== */

.journal-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.journal-actions a,
.journal-actions form button {
    width: 100%;
    max-width: 200px;
    padding: 10px;
    background-color: var(--highlight-color);
    color: var(--text-color);
    text-align: center;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    margin: 5px 0;
}

.journal-actions a:hover,
.journal-actions form button:hover {
    background-color: #0056b3;
}

.journal-actions form input[type="file"] {
    width: 100%;
    max-width: 200px;
    margin: 5px 0;
}

.journal-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.journal-item {
    background-color: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    transition: opacity 0.3s;
}

.journal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.journal-info strong {
    font-size: 18px;
}

.journal-info span {
    display: block;
    font-size: 14px;
    color: var(--text-color);
}

.actions-dropdown {
    position: relative;
    display: inline-block;
    margin-left: auto;
}

.dropdown-btn {
    background-color: #4CAF50;
    color: var(--text-color);
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(255, 255, 255, 0.5);
    z-index: 1;
    border-radius: 5px;
}

/* Buttons inside dropdown */
.dropdown-content .dropdown-item,
.dropdown-content form button,
.dropdown-content a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    box-sizing: border-box;
    background-color: #4CAF50;
    color: var(--text-color);
    border: none;
}

.dropdown-content form button {
    background-color: #dc3545;
}

.dropdown-content a {
    background-color: var(--highlight-color);
    text-decoration: none;
}

.dropdown-content .dropdown-item:hover,
.dropdown-content form button:hover,
.dropdown-content a:hover {
    background-color: #218838;
}

.dropdown-content form button:hover {
    background-color: #c82333;
}

.dropdown-content a:hover {
    background-color: #0056b3;
}

.dropdown-item {
    color: var(--text-color);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    border-radius: 5px;
    background-color: #4CAF50;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    width: 100%;
}

.actions-dropdown:hover .dropdown-content {
    display: block;
}

.search-box {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.search-box input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 300px;
}

.search-box input:focus {
    border-color: var(--highlight-color);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.no-results {
    text-align: center;
    font-size: 18px;
    color: #666;
}

.flash-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
}

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

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

.filter-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.filter-dropdown {
    padding: 8px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
}

.hidden {
    opacity: 0.5;
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    h1 {
        font-size: 20px;
    }

    .journal-info strong {
        font-size: 16px;
    }

    .journal-info span {
        font-size: 12px;
    }

    .journal-actions {
        flex-direction: column;
        align-items: center;
    }

    .journal-actions a,
    .journal-actions form button {
        max-width: 100%;
        margin-bottom: 10px;
    }

    .journal-actions form input[type="file"] {
        max-width: 100%;
    }

    .vaccine-actions .action-button {
        padding: 6px 10px;
        font-size: 12px;
    }
}
/* ========================== */
/* View Pasture Page Styling  */
/* ========================== */

.pasture-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pasture-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.pasture-item {
    background-color: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    transition: opacity 0.3s;
}

.pasture-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.pasture-info strong {
    font-size: 18px;
}

.pasture-info span {
    display: block;
    font-size: 14px;
    color: var(--text-color);
}

.hidden {
    opacity: 0.5;
    display: none;
}

/* Dropdown Styles */
.actions-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background-color: #4CAF50;
    color: var(--text-color);
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 160px;
    width: 100%;
    box-shadow: 0px 8px 16px rgba(255, 255, 255, 0.5);
    z-index: 1;
    border-radius: 5px;
    text-align: center;
}

.dropdown-item,
form button.dropdown-item {
    color: var(--text-color);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    background-color: #4CAF50;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    width: 100%;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
}

form button.dropdown-item {
    all: unset;
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    background-color: #218838;
    color: var(--text-color);
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    box-sizing: border-box;
}

.dropdown-item:hover,
form button.dropdown-item:hover {
    background-color: #218838;
}

.actions-dropdown:hover .dropdown-content {
    display: block;
}

.edit-button {
    background-color: var(--highlight-color);
}

.edit-button:hover {
    background-color: #0056b3;
}

.delete-button {
    background-color: #dc3545;
}

.delete-button:hover {
    background-color: #c82333;
}

/* Filter Dropdown */
.filter-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-dropdown {
    padding: 8px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 20px;
    }

    .pasture-info strong {
        font-size: 16px;
    }

    .pasture-info span {
        font-size: 12px;
    }

    .action-button {
        padding: 6px 10px;
        font-size: 12px;
    }
}
/* ========================= */
/* View Sires Page Styling  */
/* ========================= */

.sires-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.sires-actions a,
.sires-actions form button {
    width: 100%;
    max-width: 200px;
    padding: 10px;
    background-color: var(--highlight-color);
    color: var(--text-color);
    text-align: center;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    margin: 5px 0;
}

.sires-actions form input[type="file"] {
    width: 100%;
    max-width: 200px;
    margin: 5px 0;
}

.sires-actions a:hover,
.sires-actions form button:hover {
    background-color: #0056b3;
}

.sires-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.sire-item {
    background-color: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
}

.sire-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.sire-info strong {
    font-size: 18px;
}

.sire-info span {
    display: block;
    font-size: 14px;
    color: var(--text-color);
}

.sire-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sire-actions .action-button {
    padding: 8px 12px;
    background-color: #28a745;
    color: var(--text-color);
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 10px;
}

.sire-actions .edit-button {
    background-color: var(--highlight-color);
}

.sire-actions .edit-button:hover {
    background-color: #0056b3;
}

.sire-actions .action-button:hover {
    background-color: #218838;
}

/* Dropdown Styles */
.actions-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background-color: #4CAF50;
    color: var(--text-color);
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    width: 100%;
    box-shadow: 0px 8px 16px rgba(255, 255, 255, 0.5);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-item,
form button.dropdown-item,
button.dropdown-item {
    color: var(--text-color);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    background-color: #4CAF50;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    width: 100%;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
}

form button.dropdown-item {
    all: unset;
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    background-color: #4CAF50;
    color: var(--text-color);
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    box-sizing: border-box;
}

.dropdown-item:hover,
form button.dropdown-item:hover,
button.dropdown-item:hover {
    background-color: #218838;
}

.actions-dropdown:hover .dropdown-content {
    display: block;
}

/* Filter and Search */
.filter-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-dropdown {
    padding: 8px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
}

#sire-search {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: auto;
}

/* Modal Styling */
.history-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000000;
    color: var(--text-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
    z-index: 1000;
}

.closeModal {
    margin-top: 10px;
    background-color: var(--highlight-color);
    color: var(--text-color);
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* General Utility */
.btn {
    display: inline-block;
    width: 150px;
    height: 50px;
    line-height: 50px;
    padding: 0;
    margin-bottom: 20px;
    background-color: var(--highlight-color);
    color: var(--text-color);
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    overflow: hidden;
}

.export-btn {
    background-color: #28a745;
    margin-bottom: 20px;
}

.export-btn:hover {
    background-color: #218838;
}

.no-results {
    text-align: center;
    font-size: 18px;
    color: #666;
}

.flash-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
}

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

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

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}

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

th {
    background-color: var(--container-bg);
}

/* Responsive Styles */
@media (max-width: 600px) {
    h1 {
        font-size: 20px;
    }

    .sire-info strong {
        font-size: 16px;
    }

    .sire-info span {
        font-size: 12px;
    }

    .sire-actions .action-button {
        padding: 6px 10px;
        font-size: 12px;
    }

    .sires-actions {
        flex-direction: column;
        align-items: center;
    }

    .sires-actions a,
    .sires-actions form button {
        max-width: 100%;
        margin-bottom: 10px;
    }

    .sires-actions form input[type="file"] {
        max-width: 100%;
    }
}
/* ========================== */
/* View Vaccines Page Styling */
/* ========================== */

.vaccines-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.vaccines-actions a,
.vaccines-actions form button {
    width: 100%;
    max-width: 200px;
    padding: 10px;
    background-color: var(--highlight-color);
    color: var(--text-color);
    text-align: center;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    margin: 5px 0;
}

.vaccines-actions form input[type="file"] {
    width: 100%;
    max-width: 200px;
    margin: 5px 0;
}

.vaccines-actions a:hover,
.vaccines-actions form button:hover {
    background-color: #0056b3;
}

.vaccines-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.vaccine-item {
    background-color: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    transition: opacity 0.3s;
}

.vaccine-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.vaccine-info strong {
    font-size: 18px;
}

.vaccine-info span {
    display: block;
    font-size: 14px;
    color: var(--text-color);
}

.vaccine-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.vaccine-actions .action-button {
    padding: 8px 12px;
    background-color: #28a745;
    color: var(--text-color);
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 10px;
}

.vaccine-actions .edit-button {
    background-color: var(--highlight-color);
}

.vaccine-actions .edit-button:hover {
    background-color: #0056b3;
}

.vaccine-actions .action-button:hover {
    background-color: #218838;
}

/* Dropdown Styles */
.actions-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background-color: #4CAF50;
    color: var(--text-color);
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(255, 255, 255, 0.5);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-item,
.dropdown-content form button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    box-sizing: border-box;
    background-color: #4CAF50;
    color: var(--text-color);
    border: none;
}

.dropdown-content form button.delete-btn {
    background-color: #dc3545;
}

.dropdown-content .dropdown-item.edit-btn {
    background-color: var(--highlight-color);
}

.dropdown-content .dropdown-item:hover,
.dropdown-content form button:hover {
    background-color: #218838;
}

.dropdown-content form button.delete-btn:hover {
    background-color: #c82333;
}

.dropdown-content .dropdown-item.edit-btn:hover {
    background-color: #0056b3;
}

.dropdown-item:hover {
    background-color: #ddd;
}

.actions-dropdown:hover .dropdown-content {
    display: block;
}

/* Utility & Layout */
.btn {
    display: inline-block;
    width: 150px;
    height: 50px;
    line-height: 50px;
    padding: 0;
    margin-bottom: 20px;
    background-color: var(--highlight-color);
    color: var(--text-color);
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    overflow: hidden;
}

.export-btn {
    background-color: #28a745;
    margin-bottom: 20px;
}

.export-btn:hover {
    background-color: #218838;
}

.top-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.search-box {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.search-box input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 300px;
}

.search-box input:focus {
    border-color: var(--highlight-color);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.no-results {
    text-align: center;
    font-size: 18px;
    color: #666;
}

.flash-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
}

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

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

.filter-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.filter-dropdown {
    padding: 8px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
}

/* Responsive Styles */
@media (max-width: 600px) {
    h1 {
        font-size: 20px;
    }

    .vaccine-info strong {
        font-size: 16px;
    }

    .vaccine-info span {
        font-size: 12px;
    }

    .vaccine-actions .action-button {
        padding: 6px 10px;
        font-size: 12px;
    }

    .vaccines-actions {
        flex-direction: column;
        align-items: center;
    }

    .vaccines-actions a,
    .vaccines-actions form button {
        max-width: 100%;
        margin-bottom: 10px;
    }

    .vaccines-actions form input[type="file"] {
        max-width: 100%;
    }
}

.settings-panel {
    margin: 1em;
    text-align: right;
}

.settings-panel button {
    background-color: #444;
    color: var(--text-color);
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
}

#settings {
    background-color: var(--container-bg);
    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;
    text-align: left;
}

span { color: var(--text-color); }
label { color: var(--text-color); }
th { color: var(--text-color); }
td { color: var(--text-color); }
.dropdown-content { color: var(--text-color); }
.dropdown-item { color: var(--text-color); }
.search-box input { color: var(--text-color); }
.filter-dropdown { color: var(--text-color); }
.calf-info span { color: var(--text-color); }
.cow-info span { color: var(--text-color); }
.journal-info span { color: var(--text-color); }
.vaccine-info span { color: var(--text-color); }
.pasture-info span { color: var(--text-color); }

form input[type='text'] {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid #ccc;
}


form input[type='date'] {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid #ccc;
}


form input[type='url'] {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid #ccc;
}


form textarea {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid #ccc;
}


form select {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid #ccc;
}


h1, h2, h3, h4, h5, h6, p, label, .dashboard-section h2 {
    color: var(--text-color);
}

.dashboard-btn,
.dashboard-btn:hover {
    color: var(--text-color);
}


html, body {
    background-color: var(--bg-color);
    color: var(--text-color);
  }
  .container {
    background-color: var(--container-bg);
  }
  .calf-item,
  .cow-item,
  .journal-item,
  .vaccine-item,
  .pasture-item,
  .sire-item {
    background-color: var(--card-bg);
  }
  /* buttons, links, highlights */
  .theme-toggle button,
  .version-button,
  .dashboard-btn,
  .logout-btn,
  .btn,
  .dashboard-btn:hover,
  .logout-btn:hover,
  .version-button:hover,
  .theme-toggle button:hover {
    background-color: var(--highlight-color);
    color: var(--text-color);
  }
.container h1,
.container h2,
.container h3,
.container h4,
.container p,
.container span,
.container label,
.container div {
    color: var(--text-color);
}


html, body {
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
}

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

.container h1,
.container h2,
.container h3,
.container p,
.container span,
.container label {
    color: var(--text-color);
}

.version-button {
    background-color: var(--highlight-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.version-button:hover {
    background-color: #0056b3;
}


h1, h2 {
    color: var(--text-color) !important;
}
