/* General Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
}

.logo img {
    max-width: 100px; /* Adjust logo size */
    height: auto;
}

h1 {
    text-align: center;
    font-size: 1.8rem;
    color: #007bff;
    margin-bottom: 20px;
}

label {
    font-weight: bold;
    color: #555;
}

/* Input Fields */
input[type="text"], input[type="number"], select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #28a745;
    box-shadow: 0 0 30px rgba(40, 167, 69, 0.5);
    outline: none;
}

/* Sidebar */
.sidebar {
    flex: 0 0 18%;
    max-width: 220px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.sidebar a {
    display: block;
    margin: 10px 0;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #6c63ff;
    background-color: transparent;
    border: 2px solid #6c63ff;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar a:hover {
    background-color: #6c63ff;
    color: white;
    transform: scale(1.05);
}

.sidebar ol {
    padding-left: 20px;
    margin-top: 10px;
    color: #555;
}

.sidebar ol li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 14px;
}

.sidebar strong {
    color: #007bff;
    display: block;
    margin-bottom: 5px;
}

/* Main Layout */
.main-layout {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    flex: 1;
    max-width: 70%;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.patient-info, .retinoscopy-inputs, .eye-section {
    flex: 1;
    padding: 15px;
    background: #f8f9fc;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 10px;
}

.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 15px;
}

/* General Button Styles */
button, .sidebar a, .share-button {
    display: inline-block;
    margin: 10px 0;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #6c63ff; /* Purple text color */
    background-color: transparent; /* Transparent background */
    border: 2px solid #6c63ff; /* Purple border */
    border-radius: 8px; /* Rounded corners */
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover Effect for Buttons */
button:hover, .sidebar a:hover, .share-button:hover {
    background-color: #6c63ff; /* Purple background */
    color: white; /* White text */
    transform: scale(1.05); /* Slight zoom effect */
}

/* Active Button State */
button:active, .sidebar a:active, .share-button:active {
    transform: scale(0.95); /* Slight press effect */
    background-color: #5a56d1; /* Darker purple */
}

/* Specific Styles for Buttons in Containers */
.button-container button {
    max-width: 150px; /* Limit button width */
}

.sidebar a {
    display: block;
    margin: 10px 0;
}

/* Share Button Variants */
.share-button.whatsapp {
    border-color: #25D366; /* WhatsApp Green */
}

.share-button.whatsapp:hover {
    background-color: #25D366;
    color: white;
}

.share-button.facebook {
    border-color: #3b5998; /* Facebook Blue */
}

.share-button.facebook:hover {
    background-color: #3b5998;
    color: white;
}

.share-button.twitter {
    border-color: #1DA1F2; /* Twitter Blue */
}

.share-button.twitter:hover {
    background-color: #1DA1F2;
    color: white;
}

.share-button.linkedin {
    border-color: #0077b5; /* LinkedIn Blue */
}

.share-button.linkedin:hover {
    background-color: #0077b5;
    color: white;
}
/* Sidebar Styling */
.sidebar {
    flex: 0 0 18%;
    max-width: 220px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column; /* Align items vertically */
    align-items: center; /* Center items horizontally */
    gap: 10px; /* Add spacing between buttons */
}

/* Button Styling */
.sidebar a, .sidebar button {
    display: block;
    width: 100%; /* Make buttons take full width */
    max-width: 200px; /* Limit button width */
    padding: 10px 15px; /* Add padding for spacing */
    text-align: center; /* Center text inside buttons */
    font-size: 14px;
    font-weight: bold;
    border: 2px solid #6c63ff;
    border-radius: 8px;
    background-color: transparent;
    color: #6c63ff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.sidebar a:hover, .sidebar button:hover {
    background-color: #6c63ff;
    color: white;
    transform: scale(1.05); /* Slight zoom effect on hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        max-width: 100%;
    }

    .sidebar a, .sidebar button {
        width: 100%; /* Full width on smaller screens */
    }
}

.sidebar a:hover {
    opacity: 0.9;
    transform: translateY(-3px); /* Slight upward movement */
}

/* Timer Button */
#timer-container {
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
}

#timer-container.paused {
    color: red;
}

#timer-container.running {
    color: green;
}

/* Modal Close Button */
.close {
    font-size: 24px;
    cursor: pointer;
    color: #6c63ff; /* Purple */
}

.close:hover {
    color: #5a56d1; /* Darker purple */
}

/* Form Fields */
input[type="text"], input[type="number"], select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #28a745; /* Green focus color */
    box-shadow: 0 0 30px rgba(40, 167, 69, 0.5); /* Green glow */
    outline: none;
}
.button-container {
    display: flex;
    justify-content: space-between; /* Space evenly between buttons */
    gap: 15px; /* Adjust spacing between buttons */
    margin-top: 20px; /* Add space from elements above */
    padding-bottom: 40px; /* Add space to avoid overlap with footer */
}
button, .button {
    display: inline-block;
    padding: 12px 20px; /* Same padding as other buttons */
    font-size: 14px; /* Same font size */
    font-weight: bold; /* Uniform bold font */
    border: 2px solid #6c63ff; /* Matching border color */
    border-radius: 8px; /* Rounded corners */
    background-color: transparent; /* Transparent background */
    color: #6c63ff; /* Matching text color */
    cursor: pointer;
    text-align: center; /* Center the text */
    text-decoration: none; /* Remove underline for links */
    transition: all 0.3s ease-in-out; /* Add hover transition */
    width: 100%; /* Ensure full width for side buttons */
    max-width: 250px; /* Limit button width */
    margin: 10px auto; /* Add margin between buttons */
}
button:hover, .button:hover {
    background-color: #6c63ff; /* Change background color on hover */
    color: white; /* Change text color on hover */
    transform: scale(1.05); /* Slightly enlarge button on hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); /* Add shadow effect */
}
/* Prevent Footer Overlap */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fc;
    border-top: 2px solid #ccc;
    margin-top: 20px;
    position: relative; /* Ensure footer doesn't overlap */
    bottom: 0;
    width: 100%;
    z-index: 1000; /* Ensure footer remains behind other elements */
} 
