
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

header {
    text-align: center;
    padding: 2rem 0 1rem 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-bottom: 2rem;
    position: relative;
}

.header-nav {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: #4285f4;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #4285f4;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #4285f4;
    color: white;
}

h1 {
    font-weight: 400;
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: -1px;
}

#search-section, #login-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

#search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 0.5rem 1rem;
    width: 100%;
    max-width: 500px;
    margin-bottom: 0.5rem;
}

#search-input {
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 0.7rem 1rem;
    border-radius: 24px;
    flex: 1;
    background: transparent;
}

#search-form button {
    background: #4285f4;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

#search-form button:hover {
    background: #357ae8;
}

#search-error {
    color: #d93025;
    margin-top: 0.5rem;
    font-size: 1rem;
}

#results-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#results-section h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

#results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 500px;
}

#results-list li {
    background: #fff;
    margin-bottom: 0.7rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(60,64,67,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

#results-list a {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
}

#results-list a:hover {
    text-decoration: underline;
}

#login-section form {
    background: #fff;
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 350px;
    width: 100%;
}

#login-section label {
    align-self: flex-start;
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

#login-section input[type="text"],
#login-section input[type="password"] {
    width: 100%;
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8f9fa;
    outline: none;
    transition: border 0.2s;
}

#login-section input[type="text"]:focus,
#login-section input[type="password"]:focus {
    border: 1.5px solid #4285f4;
}

#login-section button {
    background: #4285f4;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

#login-section button:hover {
    background: #357ae8;
}

#register-section form {
    background: #fff;
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 350px;
    width: 100%;
    margin-top: 0.5rem;
}

#register-section label {
    align-self: flex-start;
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

#register-section input[type="text"],
#register-section input[type="password"] {
    width: 100%;
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8f9fa;
    outline: none;
    transition: border 0.2s;
}

#register-section input[type="text"]:focus,
#register-section input[type="password"]:focus {
    border: 1.5px solid #4285f4;
}

#register-section button {
    background: #4285f4;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

#register-section button:hover {
    background: #357ae8;
}

#register-section .register-error {
    color: #d93025;
    margin-top: 0.5rem;
    font-size: 1rem;
}

#register-section .register-success {
    color: #188038;
    margin-top: 0.5rem;
    font-size: 1rem;
}

/* Saved Universities Section */
#user-list-section {
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin: 2rem 0;
}

#user-list-section h2 {
    margin-top: 0;
    color: #4285f4;
    font-size: 1.5rem;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 0.5rem;
}

#user-list-nav {
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin: 2rem 0;
    align-items: center;
}

.saved-unis-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.saved-uni-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4285f4;
}

.uni-info {
    flex-grow: 1;
}

.uni-info strong {
    display: block;
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 0.3rem;
}

.uni-website {
    color: #4285f4;
    text-decoration: none;
    font-size: 0.9rem;
}

.uni-website:hover {
    text-decoration: underline;
}

.remove-uni-btn {
    background: #d93025;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.remove-uni-btn:hover {
    background: #b52d20;
}

/* Add to List Button Styles */
.add-to-list-btn {
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.add-to-list-btn:hover {
    background: #357ae8;
}

.add-to-list-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Help Section */
.help-section {
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

.help-section a {
    color: #4285f4;
    text-decoration: none;
}

.help-section a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    body {
        padding: 0 0.5rem;
    }
    #user-list-section {
        max-width: 98vw;
        padding: 1rem 0.5rem;
    }
    #user-list-nav{
        max-width: 98vw;
        padding: 1rem 0.5rem;
    }
    header {
        padding: 1.2rem 0 0.7rem 0;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 1rem;
        padding: 0 0.2rem;
    }
    header {
        padding: 1rem 0 0.5rem 0;
        margin-bottom: 1rem;
    }
    .header-nav {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    .nav-link {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    #search-section, #login-section, #register-section {
        width: 100vw;
        max-width: 100vw;
        padding: 0 0.5rem;
        margin-bottom: 1.2rem;
    }
    #search-form, #results-list, #user-list-section {
        max-width: 98vw;
        width: 100%;
        padding: 0.5rem;
    }
    #search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    #search-input {
        font-size: 1rem;
        padding: 0.6rem 0.8rem;
    }
    #search-form button {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
        padding: 0.7rem 0;
    }
    #results-list li, .saved-uni-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.8rem 0.7rem;
        font-size: 1rem;
    }
    .add-to-list-btn, .remove-uni-btn {
        width: 100%;
        margin-top: 0.5rem;
        font-size: 1rem;
        padding: 0.7rem 0;
    }
    .uni-info strong {
        font-size: 1rem;
    }
    .uni-website {
        font-size: 0.95rem;
    }
    #login-section form, #register-section form {
        max-width: 98vw;
        padding: 1rem 0.5rem 1rem 0.5rem;
    }
    .help-section {
        max-width: 98vw;
        padding: 0.7rem;
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 1.5rem;
    }
    #user-list-section h2 {
        font-size: 1.1rem;
    }
    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
} 