/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('https://images.unsplash.com/photo-1587174486073-ae5e5cff23aa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Login Page Styles */
.login-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.login-container h1 {
    color: #2e7d32;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.login-form h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.login-form p {
    color: #666;
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    margin-bottom: 15px;
}

.input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.input-group button {
    background-color: #2e7d32;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.input-group button:hover {
    background-color: #1b5e20;
}

.error-message {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 10px;
    min-height: 20px;
}

/* Main Dashboard Styles */
.dashboard {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.dashboard h1 {
    color: #2e7d32;
    margin-bottom: 20px;
    text-align: center;
}

.dashboard-intro {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
}

/* Navigation Styles */
.nav-container {
    background-color: #2e7d32;
    border-radius: 10px;
    margin-bottom: 30px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style-type: none;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    background-color: #1b5e20;
}

/* Content Section Styles */
.content-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.content-section h2 {
    color: #2e7d32;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.content-section p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Card Styles for Information Display */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex: 1 1 300px;
}

.card h3 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.card p {
    margin-bottom: 10px;
}

.card .label {
    font-weight: bold;
    color: #555;
}

/* Weather Banner Styles */
.weather-banner {
    background-color: #2e7d32;
    border-radius: 8px;
    color: white;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 100%;
}

.weather-banner-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    flex-wrap: wrap;
}

.weather-icon {
    flex: 0 0 80px;
    text-align: center;
}

.weather-icon img {
    width: 70px;
    height: 70px;
}

.weather-info {
    flex: 1;
    padding: 0 20px;
    min-width: 150px;
}

.weather-location {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.weather-temp {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.weather-desc {
    font-size: 1rem;
    text-transform: capitalize;
}

.weather-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.weather-detail {
    margin-bottom: 5px;
}

.detail-label {
    font-weight: bold;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .weather-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .weather-info, .weather-details {
        padding: 10px 0;
    }
    
    .weather-details {
        align-items: center;
    }
}

/* Photo Gallery Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Photo Link Style */
.photo-link {
    display: inline-block;
    background-color: #2e7d32;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.2s;
}

.photo-link:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
}

.photo-link:active {
    transform: translateY(0);
}

/* Table Styles for Tee Times and Results */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.info-table th, .info-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.info-table th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: bold;
}

.info-table tr:hover {
    background-color: #f9f9f9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .input-group button {
        border-radius: 4px;
    }
    
    .main-nav {
        flex-direction: column;
    }
    
    .main-nav a {
        text-align: center;
    }
    
    .card-container {
        flex-direction: column;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}
