#corn-tracker {
    margin-top: 20px;
	margin-left: 20px;
	margin-right: 20px;
    padding: 20px;
    background-color: #4b5320;
    border-radius: 10px;
    color: white;
}

.feeder {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #3e4426;
    border-radius: 8px;
}

.feeder label {
    display: block;
    margin-bottom: 10px;
    text-align: left;
    width: 100%;
}

.feeder input {
    width: 100%; /* Full width */
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box; /* Include padding and border in width */
}

.corn-h2 {
    color: #FFD700; /* Gold color */
}

.corn-button, label.file-label {
    background-color: #FFD700;
    color: #2b2b2b;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    display: block;
    text-align: center;
    width: 100%; /* Ensures full width */
    max-width: 200px; /* Consistent max width */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box; /* Include padding and border in width */
	-webkit-tap-highlight-color: transparent; /* Removes the blue highlight on mobile */

}

.corn-button:hover, label.file-label:hover {
    background-color: #e0c000;
}

.corn-separator {
    border: 0;
    height: 1px;
    background: #FFD700;
    margin: 20px auto;
    max-width: 200px; /* Same max width as buttons */
}

.feeder-status {
    margin-top: 10px;
    font-size: 18px;
}

.last-updated {
    font-size: 14px;
    color: #bbb;
    margin-top: 5px;
}

input[type="file"] {
    display: none;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Black with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #4b5320;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 300px;
    max-height: 80vh; /* Limit the modal height to 80% of the viewport height */
    overflow-y: auto; /* Add a vertical scrollbar if content overflows */
    color: white;
    border-radius: 10px;
    text-align: center;
}

/* Custom scrollbar for WebKit browsers (Chrome, Safari) */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #3e4426; /* Background of the scrollbar track */
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: #FFD700; /* Scrollbar color */
    border-radius: 10px;
    border: 2px solid #3e4426; /* Padding around the scrollbar */
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background-color: #e0c000; /* Scrollbar color on hover */
}

/* Custom scrollbar for Firefox */
@-moz-document url-prefix() {
    .modal-content {
        scrollbar-color: #FFD700 #3e4426; /* Scrollbar thumb and track colors */
        scrollbar-width: thin; /* Scrollbar width */
    }
}

.modal-content button {
    margin-top: 10px;
    max-width: 100%;
}

.close-button {
    background-color: #FFD700;
    color: #2b2b2b;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
    display: block;
    text-align: center;
    width: 100%;
}

.close-button:hover {
    background-color: #e0c000;
}


/* Disabled Input in Corn Feeder in Hopper Form */
input[disabled] {
    background-color: #848484; /* Light gray background */
    color: #fff; /* Darker text color for better contrast */
    opacity: 1; /* Ensures the opacity is set to 1 so it's not faded */
}



@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.5s infinite; /* Shake animation that repeats infinitely */
}


.corn-button.backup-button {
    background-color: #FF4500; /* Bright orange */
    color: white;
    font-size: 18px; /* Larger font size */
    padding: 15px 30px; /* Increase padding */
    border: 2px solid #FFD700; /* Gold border */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Subtle shadow */
    transition: transform 0.3s, background-color 0.3s;
}

.corn-button.backup-button:hover {
    background-color: #FF6347; /* Slightly lighter shade on hover */
    transform: scale(1.1); /* Slightly larger on hover */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* More prominent shadow on hover */
}

.corn-separator {
    border: 0;
    height: 1px;
    background: #FFD700; /* Gold color */
    margin: 10px 0;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

/* Corn Feeder Restore Success Notification */
.corn-success-notification {
    background-color: #fff; /* Yellow background */
    color: #2b2b2b; /* Dark text for contrast */
    padding: 12px 20px;
    border-radius: 8px;
	border: 3px solid #3e4426;
    font-weight: bold;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center it horizontally and vertically */
    z-index: 1000;
    display: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, transform 0.3s ease;
	width: 275px;
}

.corn-success-notification.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%);
}

.corn-success-notification.hide {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.feeder input[type="date"] {
    width: 100%; /* Full width */
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
}
