/* This applies to the whole page */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    /* The New Farm Background! */
    background-image: url('background1.jpg');
    background-size: cover;       /* Stretches it to fit the screen */
    background-attachment: fixed; /* Keeps the picture still when you scroll */
    background-position: center;
}

/* This styles all your major headings */
h1, h2, h3 {
    color: #2c3e50;
}

/* This gives your buttons a modern, clickable look */
button {
    background-color: #27ae60; /* Tractor Green! */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button:hover {
    background-color: #219150; /* Slightly darker green when you hover */
}

/* A specific style for danger/logout buttons */
.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* This makes your Herd data table look extremely professional */
table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #2c3e50;
    color: white;
}

/* This adds the nice alternating gray/white rows to the table */
tr:nth-child(even) {
    background-color: #f2f2f2;
}
/* --- Navigation Bar --- */
.navbar {
    background-color: #2c3e50; /* Dark slate */
    display: flex;
    justify-content: space-between; /* Puts the logo on the left, links on the right */
    align-items: center;
    padding: 15px 40px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: 0.2s; /* Smooth hover effect */
}

.navbar a:hover {
    background-color: #3b536b; /* Slightly lighter on hover */
}

.nav-brand {
    font-size: 22px !important;
    letter-spacing: 1px;
    color: #27ae60 !important; /* Tractor Green text for the logo */
}

/* This keeps your page content centered and neat under the navbar */
.content-wrapper {
    max-width: 1000px;
    margin: 15px auto;
    padding: 10px;
    
    /* Make the text white */
    color: white; 
    /* Add a strong black shadow so you can read it over the photo */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9); 
}
/* Force all text on the pages to be white with a heavy black shadow */
.content-wrapper h1, 
.content-wrapper h2, 
.content-wrapper h3, 
.content-wrapper p,
.content-wrapper label,
.content-wrapper div {
    color: white !important;
    text-shadow: 2px 2px 4px black, 0px 0px 10px black, 0px 0px 15px black !important;
}