/* styles.css */

/* ======= Base Styles ======= */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f9f9fa;
    color: #222;
    min-height: 100vh;
}

/* ======= Header / Navigation ======= */
header {
    background: #1d2747;
    color: #fff;
    padding: 0.7rem 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
header .container {
    max-width: 950px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
}
nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 12px;
    font-size: 1rem;
    transition: color 0.2s;
}
nav a:hover {
    color: #ffd600;
}

/* ======= Homepage Centered Content ======= */
.intro {
    text-align: center;
    padding: 2rem 0 1rem 0;
}
.intro h1 {
    font-size: 2rem;
    color: #153164;
    margin-bottom: 0.5rem;
}
.intro p {
    font-size: 1.1rem;
    color: #555;
}
.center-buttons {
    text-align: center;
    margin: 2rem 0 2.5rem 0;
}
.main-btn {
    display: inline-block;
    background: linear-gradient(90deg, #1d2747 80%, #ffd600 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2.4rem;
    margin: 0 16px 16px 0;
    border: none;
    border-radius: 28px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(25, 25, 80, 0.08);
    transition: background 0.15s, transform 0.12s;
}
.main-btn:hover {
    background: linear-gradient(90deg, #ffd600 80%, #1d2747 100%);
    color: #222;
    transform: scale(1.04);
}

/* ======= Forms (Login/Register etc) ======= */
form {
    max-width: 340px;
    margin: 36px auto 0 auto;
    padding: 32px 22px 20px 22px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 32px rgba(40, 44, 63, 0.09);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
form input[type="text"],
form input[type="password"],
form input[type="number"] {
    padding: 12px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fafbff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
form input:focus {
    border-color: #1d2747;
}
form button {
    padding: 12px 0;
    border-radius: 25px;
    border: none;
    background: linear-gradient(90deg, #1d2747 80%, #ffd600 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(25, 25, 80, 0.08);
    margin-top: 8px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    display: block;
    width: 100%;
}
form button:hover {
    background: linear-gradient(90deg, #ffd600 80%, #1d2747 100%);
    color: #222;
    transform: scale(1.03);
}

/* ======= Headings & Links ======= */
h2 {
    text-align: center;
    color: #1d2747;
    margin-top: 0;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
a {
    color: #1d2747;
    text-decoration: none;
    font-weight: 500;
}
a:hover {
    text-decoration: underline;
    color: #ff9800;
}

/* ======= Success and Error Message ======= */
.error, .success {
    padding: 13px 8px;
    border-radius: 7px;
    margin-bottom: 14px;
    font-size: 1rem;
    text-align: center;
    font-weight: 500;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}
.error {
    background: #fff4f0;
    color: #d32f2f;
    border: 1px solid #ffccc7;
}
.success {
    background: #f0fff5;
    color: #13b14b;
    border: 1px solid #a4ebc7;
}

/* ======= Tables (Admin/User List etc) ======= */
table {
    border-collapse: collapse;
    margin: 25px auto 0 auto;
    width: 95%;
    max-width: 740px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(80,80,120,0.08);
}
th, td {
    padding: 12px 10px;
    text-align: center;
}
th {
    background: #1d2747;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.2px;
}
td {
    font-size: 0.99rem;
    color: #2c384e;
}
tr:nth-child(even) td {
    background: #f7f8fc;
}
tr:nth-child(odd) td {
    background: #fff;
}
/* Action links for approve/reject in table */
td a {
    padding: 5px 14px;
    margin: 0 2px;
    border-radius: 16px;
    font-size: 0.97rem;
    color: #fff;
    background: #5d6acf;
    transition: background 0.2s;
    text-decoration: none;
    font-weight: 500;
}
td a:hover {
    background: #ffd600;
    color: #222;
}

/* ======= Footer ======= */
footer {
    background: #222d3c;
    color: #fff;
    text-align: center;
    padding: 1rem 0 0.6rem 0;
    font-size: 0.96rem;
    letter-spacing: 0.2px;
    margin-top: 48px;
    border-radius: 20px 20px 0 0;
}

/* ======= Responsive ======= */
@media (max-width: 650px) {
    header .container {
        flex-direction: column;
        gap: 8px;
    }
    .main-btn {
        padding: 0.9rem 1.3rem;
        font-size: 1rem;
        margin: 0 0 14px 0;
    }
    .intro {
        padding: 1.2rem 0 0.7rem 0;
    }
    form {
        max-width: 98vw;
        padding: 14px 2vw 12px 2vw;
        margin-top: 20px;
    }
    table {
        font-size: 0.93rem;
        width: 99vw;
    }
}
/* Results Page Lottery Cards */

.results-grid {
    max-width: 1100px;
    margin: 35px auto 30px auto;
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    justify-content: center;
}

.result-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 3px 24px rgba(34,44,78,0.10);
    padding: 30px 40px 24px 40px;
    min-width: 250px;
    max-width: 350px;
    width: 100%;
    margin: 0 0 20px 0;
    text-align: center;
    transition: box-shadow 0.17s, transform 0.14s;
    border: 2px solid #f2f4f8;
    position: relative;
}

.result-card:hover {
    box-shadow: 0 8px 36px rgba(34,44,78,0.16);
    transform: translateY(-5px) scale(1.04);
    border-color: #ffd600;
}

.result-card .draw-time {
    font-size: 1.15rem;
    font-weight: 600;
    color: #153164;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}
.result-card .result-number {
    font-size: 2.35rem;
    font-weight: 800;
    color: #ff1744;
    margin: 8px 0 4px 0;
    letter-spacing: 2px;
    text-shadow: 0 1px 6px rgba(255,23,68,0.08);
}
.result-card .series {
    color: #1d2747;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 10px;
}
.result-card .winner-label {
    font-size: 1rem;
    color: #13b14b;
    font-weight: 600;
    margin-bottom: 7px;
    letter-spacing: 0.15px;
}
.result-card .date {
    color: #555;
    font-size: 0.99rem;
    margin-top: 6px;
}

@media (max-width: 900px) {
    .results-grid {
        flex-direction: column;
        gap: 22px;
        align-items: center;
    }
    .result-card {
        min-width: 80vw;
        max-width: 98vw;
        padding: 24px 8vw 16px 8vw;
    }
}
/* ==== Sambad Style Lottery Result Banner ==== */
.lottery-banner {
    background: #fffbe6;
    border-radius: 17px;
    border: 2.5px solid #ffd600;
    max-width: 740px;
    margin: 28px auto 34px auto;
    box-shadow: 0 4px 18px rgba(120,120,0,0.13);
    padding: 32px 18px 28px 18px;
}

.banner-header {
    text-align: center;
    margin-bottom: 22px;
}
.prize-big {
    font-size: 1.65rem;
    font-weight: 700;
    color: #1241af;
    margin-bottom: 4px;
    letter-spacing: 1px;
}
.big-number {
    color: #d7263d;
    font-size: 2.2rem;
    font-weight: 900;
    margin-left: 8px;
    letter-spacing: 2px;
    display: inline-block;
    vertical-align: middle;
}
.series-no, .draw-info {
    font-size: 1.03rem;
    color: #1d2747;
    margin-bottom: 3px;
    letter-spacing: 0.1px;
}

/* ==== All Prize Rows ==== */
.prize-row {
    margin-bottom: 13px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    font-size: 1.09rem;
}
.prize-label {
    font-weight: 700;
    min-width: 148px;
    color: #088a00;
    margin-right: 7px;
}
.prize-numbers {
    color: #222;
    font-weight: 500;
    margin-left: 3px;
    word-break: break-all;
}

/* ==== 5th Prize Grid ==== */
.fifth-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 19px;
    margin-left: 9px;
    margin-top: 6px;
    max-width: 670px;
}
.fifth-grid span {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 6px;
    padding: 4px 13px 4px 13px;
    font-size: 1.04rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
    box-shadow: 0 1px 6px rgba(200,200,0,0.04);
    display: inline-block;
}

/* ==== Bottom Info Section ==== */
.lottery-banner .draw-info {
    color: #1241af;
    font-size: 1.06rem;
    margin-top: 18px;
    margin-bottom: 0;
}

/* ==== Sub heading (आज के सभी draws) ==== */
h3 {
    text-align: center;
    color: #1d2747;
    font-size: 1.11rem;
    margin-top: 36px;
    margin-bottom: 17px;
    letter-spacing: 0.06em;
}

/* ==== Results Grid for Today's Draws ==== */
.results-grid {
    max-width: 1100px;
    margin: 20px auto 24px auto;
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    justify-content: center;
}
.result-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 3px 24px rgba(34,44,78,0.10);
    padding: 30px 40px 24px 40px;
    min-width: 250px;
    max-width: 350px;
    width: 100%;
    margin: 0 0 20px 0;
    text-align: center;
    transition: box-shadow 0.17s, transform 0.14s;
    border: 2px solid #f2f4f8;
    position: relative;
    cursor: pointer;
}
.result-card:hover {
    box-shadow: 0 8px 36px rgba(34,44,78,0.16);
    transform: translateY(-5px) scale(1.04);
    border-color: #ffd600;
}
.result-card .draw-time {
    font-size: 1.15rem;
    font-weight: 600;
    color: #153164;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}
.result-card .result-number {
    font-size: 2.35rem;
    font-weight: 800;
    color: #ff1744;
    margin: 8px 0 4px 0;
    letter-spacing: 2px;
    text-shadow: 0 1px 6px rgba(255,23,68,0.08);
}
.result-card .series {
    color: #1d2747;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 10px;
}
.result-card .winner-label {
    font-size: 1rem;
    color: #13b14b;
    font-weight: 600;
    margin-bottom: 7px;
    letter-spacing: 0.15px;
}
.result-card .date {
    color: #555;
    font-size: 0.99rem;
    margin-top: 6px;
}

/* ==== Responsive ==== */
@media (max-width: 900px) {
    .lottery-banner {
        max-width: 99vw;
        padding: 15px 2vw 18px 2vw;
    }
    .results-grid {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .result-card {
        min-width: 85vw;
        max-width: 98vw;
        padding: 20px 7vw 14px 7vw;
    }
    .big-number {
        font-size: 1.15rem;
    }
}
@media (max-width: 650px) {
    .banner-header, .prize-row, .prize-label, .prize-numbers {
        font-size: 0.99rem;
    }
    .prize-big { font-size: 1.13rem; }
    .big-number { font-size: 1.05rem; }
    .fifth-grid { gap: 5px 8px; }
    .lottery-banner { padding: 8px 1vw 12px 1vw; }
}
