/* Weather App Styles */

/* Basic body styling */
body {
    font-size: 24px;
    background-color: lightblue;
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
}

h1, h1 * {
    color: black !important;
}

h2, h2 * {
    color: black !important;
}

#userGreeting, #userGreeting * {
    color: black !important;
}

#cityName, #cityName * {
    color: black !important;
}

/* Force all main text to be black */
.weather-screen h1,
.weather-screen h2,
.weather-screen #userGreeting,
.weather-screen #cityName {
    color: black !important;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* Login Screen */
#loginScreen {
    text-align: center;
}

.input-group {
    margin: 20px;
}

.input-group input {
    font-size: 20px;
    padding: 5px;
    border-radius: 5px;
    border: 2px solid #ccc;
    width: 200px;
}

.login-button {
    font-size: 20px;
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
}

.login-button:hover {
    background-color: #45a049;
}

#loginMessage {
    color: red;
    font-weight: bold;
}

/* Weather Screen */
#weatherScreen {
    display: none;
}

/* Points Section */
.points-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    margin: 15px 0;
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.points-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.points-title {
    margin: 0;
    color: white;
}

.points-display {
    font-size: 36px;
    font-weight: bold;
    margin: 5px 0;
}

.user-title {
    font-size: 18px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: inline-block;
}

.streak-info {
    text-align: right;
}

.daily-streak {
    font-size: 24px;
    margin-bottom: 10px;
}

.info-button {
    background: white;
    color: #667eea;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
}

.info-button:hover {
    background-color: #f0f0f0;
}

/* Progress Bar */
.level-progress {
    margin-top: 15px;
}

.progress-container {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
    height: 100%;
    width: 0%;
    transition: width 0.5s;
    border-radius: 10px;
}

.progress-text {
    margin-top: 5px;
    font-size: 14px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1000;
    max-width: 400px;
    color: #333;
}

.modal h3 {
    color: #333;
}

.modal ul {
    font-size: 18px;
    line-height: 1.8;
}

.modal-button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
}

.modal-button:hover {
    background: #5a67d8;
}

/* Badges Section */
.badges-section {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    padding: 15px;
    margin: 15px 0;
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.badges-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badges-title {
    margin: 0;
    color: white;
}

.view-all-button {
    background: white;
    color: #19547b;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
}

.badges-subtitle {
    margin: 5px 0 15px 0;
    opacity: 0.9;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 60px;
    align-items: center;
}

/* New Badge Notification */
.new-badge-notification {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1000;
    max-width: 300px;
}

.new-badge-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.new-badge-content {
    font-size: 18px;
}

.awesome-button {
    background: white;
    color: #19547b;
    border: none;
    padding: 8px 15px;
    border-radius: 10px;
    margin-top: 15px;
    cursor: pointer;
}

/* All Badges Modal */
.all-badges-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1000;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    color: #333;
}

/* Habit Tracker Section */
.habit-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    margin: 15px 0;
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.habit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.habit-stat {
    font-size: 32px;
    font-weight: bold;
}

.habit-label {
    font-size: 16px;
    opacity: 0.8;
}

.habit-calendar {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

/* Location Section */
.location-section {
    background-color: #f0fff0;
    padding: 15px;
    margin: 20px 0;
    border-radius: 10px;
    border: 2px solid #90EE90;
}

.location-buttons {
    margin: 10px 0;
}

.my-location-button {
    font-size: 18px;
    padding: 10px;
    margin: 5px;
    background-color: #32CD32;
    color: white;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.add-location-button {
    font-size: 18px;
    padding: 10px;
    margin: 5px;
    background-color: #FF69B4;
    color: white;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.saved-locations {
    margin: 15px 0;
}

.add-location-form {
    display: none;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

/* Weather display */
.weather-info {
    background-color: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Buttons */
.primary-button {
    background-color: #4CAF50;
    color: white;
    font-size: 18px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}

.primary-button:hover {
    background-color: #45a049;
}

.secondary-button {
    background-color: #2196F3;
    color: white;
    font-size: 18px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}

.secondary-button:hover {
    background-color: #1976D2;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        font-size: 20px;
        padding: 10px;
    }
    
    .points-header,
    .badges-header,
    .habit-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .modal {
        max-width: 90vw;
        padding: 20px;
    }
}