a, a:hover, a:visited { 
    color: #009688; font-weight: bold; text-decoration: none; 
}

a:hover {
    text-decoration: underline; 
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #ffffff; /* Material background color */
    color: #333;
    line-height: 1.6;
    padding-bottom: 60px; /* Space for footer */
    -webkit-text-size-adjust: 100%; /* Prevent font size adjustment on orientation change */
}

/* Reset button styles for consistency across browsers */
button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.container {
    max-width: 800px;
    width: 90%; /* Use percentage width for better responsiveness */
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    box-sizing: border-box; /* Include padding in width calculation */
}

header {
    position: relative;
    padding-top: 10px;
}

.logo-container {
    position: absolute;
    top: 0;
    left: 0;
}

.logo {
    max-height: 50px;
    width: auto;
}

header h1 {
    color: #212121; /* Darker grey for heading */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

#intro {
    margin-bottom: 30px; /* More space after intro */
}

#intro p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #5f6368; /* Google's secondary text color */
    padding: 0 5px; /* Small padding on sides for mobile */
}



#job-role-inputs, #location-inputs {
    margin-bottom: 25px; /* Add more space between sections */
}

#job-role-inputs h2, #location-inputs h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.job-input-group, .location-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 16px; /* More space between inputs */
    gap: 12px; /* Increased gap */
}

.job-title-input, .location-input {
    flex-grow: 1;
    width: 100%; /* Full width */
    padding: 12px;
    border: none;
    border-bottom: 2px solid #bdbdbd; /* Material input underline */
    font-size: 16px; /* Use 16px to prevent zoom on mobile */
    transition: border-color 0.2s ease-in-out;
    background-color: transparent;
    box-sizing: border-box; /* Include padding in width calculation */
}

.job-title-input:focus, .location-input:focus {
    outline: none;
    border-bottom-color: #4285f4; /* Google Blue */
}

.material-button {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Center content for better mobile appearance */
    gap: 8px;
    padding: 12px 20px; /* Slightly taller for better touch targets */
    border: none;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s;
    background-color: #f5f5f5; /* Default Material button */
    color: #333;
    min-width: 140px; /* Minimum width for buttons */
    box-sizing: border-box; /* Include padding in width calculation */
}
.material-button .material-icons {
    font-size: 1.3rem;
}

#add-role-btn, #add-location-btn {
    background-color: #e0e0e0; /* Lighter for secondary action */
    color: #333;
    margin-top: 10px;
}
#add-role-btn:hover, #add-location-btn:hover {
    background-color: #d5d5d5;
    box-shadow: 0 3px 3px 0 rgba(0,0,0,0.14), 0 1px 7px 0 rgba(0,0,0,0.12), 0 3px 1px -1px rgba(0,0,0,0.2);
}

#add-role-btn:active, #add-location-btn:active {
    background-color: #c9c9c9;
    transform: translateY(1px); /* Subtle press effect */
}
#add-role-btn:disabled, #add-location-btn:disabled {
    background-color: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
    box-shadow: none;
}

.remove-role-btn, .remove-location-btn {
    background-color: #ef9a9a; /* Light red */
    color: #c62828; /* Darker red for text/icon */
    border: none;
    border-radius: 50%;
    width: 44px; /* Larger for better touch target */
    height: 44px; /* Larger for better touch target */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}
.remove-role-btn:hover, .remove-location-btn:hover {
    background-color: #e57373;
}
.remove-role-btn:active, .remove-location-btn:active {
    background-color: #ef5350; /* Darker color for active state */
}
.remove-role-btn .material-icons, .remove-location-btn .material-icons {
    font-size: 1.3rem; /* Slightly larger icons */
}


#search-action {
    margin-top: 30px;
    text-align: left;
    margin-bottom: 20px;
}

#search-action .material-button {
    margin-bottom: 5px;
}

.green-button {
    background-color: #4CAF50; /* Green */
    color: white;
}
.green-button:hover {
    background-color: #45a049; /* Darker green */
    box-shadow: 0 3px 3px 0 rgba(0,0,0,0.14), 0 1px 7px 0 rgba(0,0,0,0.12), 0 3px 1px -1px rgba(0,0,0,0.2);
}
.green-button:active {
    background-color: #3d8b3d; /* Even darker green for press */
    transform: translateY(1px); /* Subtle press effect */
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #757575;
    border-top: 1px solid #e0e0e0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
        width: calc(100% - 20px);
        max-width: 100%;
    }
    
    header {
        padding-top: 5px;
    }
    
    .logo {
        max-height: 40px;
    }
    
    header h1 {
        font-size: 1.8rem;
        margin-left: 0;
    }
    
    #intro p {
        font-size: 0.95rem;
    }
    
    .job-input-group, .location-input-group {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 15px;
    }
    
    .job-title-input, .location-input {
        padding: 14px;
        font-size: 16px; /* Prevent zoom on mobile */
    }
    
    .remove-role-btn, .remove-location-btn {
        margin-top: 5px;
        width: 100%;
        border-radius: 4px; /* Match other buttons on mobile */
        height: 42px; /* Larger touch target */
    }
    
    .material-button {
        width: 100%;
        padding: 14px 20px;
        justify-content: center;
        font-size: 0.95rem;
    }
    
    #search-action {
        margin-top: 25px;
    }
    
    #search-btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    footer {
        margin-top: 30px;
        padding: 15px 0;
    }
}

/* Small phone screens */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.6rem;
        padding-left: 40px; /* Make space for the logo */
    }
    
    .logo {
        max-height: 35px;
    }
    
    #job-role-inputs h2, #location-inputs h2 {
        font-size: 1.1rem;
    }
    
    .material-button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .material-button .material-icons {
        font-size: 1.2rem;
    }
}