@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Main Layout */
main {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

section {
    margin-bottom: 30px;
}

h2 {
    border-bottom: 3px solid #008080;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 500;
    color: #003366;
}

h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 500;
    color: #003366;
}

form div {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #666;
}

input, select {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    border-color: #008080;
    outline: none;
    background-color: #fff;
}

button {
    background-color: #008080;
    color: white;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #005959;
    transform: translateY(-2px);
}

/* Navigation Bar */
nav {
    margin: 20px 0;
}

#navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#navbar-logo {
    display: flex;
    align-items: center;
}

#navbar-menu {
    list-style-type: none;
    padding: 0;
    display: flex;
    margin: 0;
    flex-wrap: wrap;
}

#navbar-menu li {
    margin: 0 15px;
}



/* Navigation Menu Styles */
#navbar-menu a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

#navbar-menu a.active {
    background-color: #005959; /* Active link background color */
    color: #fff; /* Active link text color */
    border-radius: 4px; 
}

#navbar-menu a:hover {
    background-color: #004040; /* Hover background color */
    color: #fff; /* Hover text color */
}

/* Header Layout */
header {
    background-color: #003366;
    color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#logo {
    width: 120px;
    height: auto;
    margin-right: 15px; 
}

header h1 {
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0;
    color: #ffffff;
}

/* Summary Section Styles */
#summary-content p {
    margin: 12px 0;
    font-weight: bold;
    font-size: 1rem;
    color: #666;
}

/* Budget Form and Summary */
#budget-form, #budget-summary {
    margin: 30px 0;
}

#budget-form h2, #budget-summary h2 {
    border-bottom: 3px solid #008080;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 500;
    color: #003366;
}

#budget-form div, #set-budget-form div {
    margin-bottom: 15px;
}

#budget-list {
    list-style-type: none;
    padding: 0;
}

#budget-list li {
    padding: 15px;
    margin-bottom: 15px;
    background-color: #ffffff;
    border-left: 5px solid #008080;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-container {
    background-color: #003366; 
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
  
/* Footer Logo */
.footer-logo {
    display: flex;
    color: rgb(203, 228, 249);
}
.footer-logo-image {
    max-width: 150px; 
}
  
/* Footer Content */
.footer-content {
    color: white; 
    text-align: center;
}
  
/* Footer Links */
.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}
  
.footer-links a:hover {
    text-decoration: underline;
    color: white;
}
  
/* Footer Contacts */
.footer-contacts p {
    margin: 5px 0;
    color: white; 
}
  
/* Copyright Text */
.footer-content p {
    margin-top: 10px;
    font-size: 14px;
    color: wheat; 
}

.footer-contacts a {
    text-decoration: none;
    color: wheat;
}
  
/* Responsive Layout */
@media (max-width: 1024px) {
    main {
        padding: 20px;
        margin: 20px;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    button {
        font-size: 0.95rem;
    }

    #navbar-menu {
        flex-direction: column;
        align-items: flex-start;
    }

    #navbar-menu li {
        margin: 10px 0;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        margin-top: 15px;
    }

    .footer-links a {
        margin: 10px 0;
        color: white;
    }

    #budget-list li {
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.95rem;
    }

    #budget-list li span {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    main {
        padding: 15px;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    button {
        font-size: 0.9rem;
    }


    #summary-content p {
        font-size: 0.9rem;
    }

    #navbar-container {
        flex-direction: column;
        text-align: center;
    }

    #navbar-logo {
        margin-bottom: 15px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        margin-top: 15px;
    }

    .footer-links a {
        margin: 10px 0;
        color: white;
    }

    #budget-list li {
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.9rem;
    }

    #budget-list li span {
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    main {
        padding: 15px;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    button {
        font-size: 0.9rem;
    }

    #summary-content p {
        font-size: 0.85rem;
    }

    #budget-list li {
        padding: 10px;
        font-size: 0.85rem;
    }
}
