/* Modern Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding: 0;
    margin: 0;
}

.container {
    margin: 0;
    padding: 0;
}

/* Modern Header Styles */
header {
    /* background: linear-gradient(135deg, #021025 0%, #024926 100%); */
    background-color: #1F5C31;
    /* background: repeating-linear-gradient(330deg,#584577,#2d1636 2px,#000 2px,#000 3px); */
    /* background-image: url('../img/banner_header_v2.jpg'); */
    color: white;
    padding: 0.2rem 0;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    margin-bottom: 2rem;
    /* border-bottom: 1px solid black; */
}

.logo {
    text-align: center;
    padding: 0 1rem;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Navigation Styles */
.navbar {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 8px;
    padding: 0.1rem;
    margin: 0.4rem auto;
    margin-bottom: 0.6rem;
    max-width: min(950px, 85%);
}

.navbar li {
    margin: 0.3rem 0.25rem;
    background-color: yellow;
    border-radius: 4px;
    border: 2px solid black;
}

.navbar a {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    color: black;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Main Content Styles */
main {
    background-color: #fff;
    padding: 2rem 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.55);
    margin: 0 auto 2rem;
    max-width: min(900px, 85%);
    min-height: 500px;
}

h2 {
    color: #2b5876;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.8rem;
    font-size: 1.8rem;
    text-align: center;
}

p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

/* Lottery Table Styles */
.lottery-container {
    margin: 2rem 0;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

th {
    background-color: #2b5876;
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 1rem;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f7fa;
}

tr:last-child td {
    border-bottom: none;
}

/* Lottery amounts styling */
td:nth-child(2) {
    font-weight: 600;
    color: #2b5876;
}

/* Dashboard iframe */
.lottery-frame {
    width: 100%;
    height: 1100px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Form Styles - Modern and Clean */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2b5876;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
select:focus {
    border-color: #2b5876;
    box-shadow: 0 0 0 3px rgba(43, 88, 118, 0.1);
    outline: none;
}

textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

button,
.btn {
    background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%);
    color: white;
    border: none;
    padding: 0.9rem 1.7rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

button:hover,
.btn:hover {
    background: linear-gradient(135deg, #3a6f94 0%, #5f5290 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.form-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    font-weight: 500;
}

.alert-danger {
    background-color: #fff1f0;
    color: #cf1322;
    border-left: 4px solid #ff4d4f;
}

.alert-success {
    background-color: #f6ffed;
    color: #389e0d;
    border-left: 4px solid #52c41a;
}

/* Profile Page */
.profile-container {
    display: block;
    /* grid-template-columns: 1fr;
    gap: 2rem; */
}

@media (min-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Disclaimer Section */
.disclaimer {
    background-color: #f0f5fa;
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    line-height: 1.4rem;
    color: #555;
    margin: 2rem auto;
    max-width: min(900px, 85%);
    border-left: 4px solid #2b5876;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 2rem 0;
    color: #666;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: bold;
    background-color: #1F5C31;
    /* background: repeating-linear-gradient(330deg,#584577,#2d1636 2px,#000 2px,#000 3px); */
    border-top: 1px solid #ddd;
    border-bottom: 2px solid black;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #2b5876;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4e4376;
    color: #ffd3d3;
    text-decoration: underline;
}

/* Checkbox styling */
.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
}

/* State list styling (for the iframe content) */
.state-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.state-list a {
    display: block;
    padding: 0.8rem;
    background-color: #f1f7fa;
    border-radius: 6px;
    text-decoration: none;
    color: #2b5876;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.state-list a:hover {
    background-color: #2b5876;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Top Jackpots Section */
.top-jackpots {
    margin: 2rem 0;
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.top-jackpots h3 {
    color: #2b5876;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.jackpot-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2b5876;
}

.jackpot-game {
    color: #4e4376;
    font-weight: 600;
}

.lottosheet, .freebonus {
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    text-align: center;
}

.login-command {
    text-align: center;
}

#download_button {
    background-color: #1D592D;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    margin: auto;
    border-radius: 5px;
    font-weight: bold;
}

.signup-login-container {
    display: flex;
    justify-content: space-between;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 0.3rem;
    }
    
    .navbar a {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
    
    main {
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    main, .disclaimer {
        max-width: 95%;
    }

    .signup-login-container {
        display: block;
    }    

}

@media (max-width: 576px) {
    .navbar {
        flex-direction: column;
    }
    
    .navbar li {
        width: 100%;
        margin: 0.15rem 0;
    }
    
    .navbar a {
        display: block;
        text-align: center;
    }
    
    th, td {
        padding: 0.7rem;
    }
    
    .lottery-frame {
        height: 600px;
    }
}