/* ========== GLOBAL STYLES ========== */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f9f9f9;
    color: #000;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Existing styles (kept as is but slightly refined) */
.style1 { color: #FFE8DA; font-weight: bold; }
.style2 { color: #990000; font-weight: bold; }
.style3 { color: #0c1e42; font-weight: bold; font-family: Times New Roman; }
.style4 { color: #000000; font-weight: bold; }
.style5 { color: #990033; }
.style6 { color: #ECE9D8; }
.style7 { color: #993300; font-weight: bold; }
.style8 { color: #6633CC; font-weight: bold; }

a { color: #330066; text-decoration: none; }
a:hover { color: #FFCC00; text-decoration: underline; }

.errors {
    color: red;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    text-align: center;
    display: block;
    margin-bottom: 10px;
}

/* Buttons */
input[type=submit] {
    width: 140px;
    height: 40px;
    background: #0c1e42;
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
input[type=submit]:hover {
    background: #0c1a52;
    transform: scale(1.03);
}

/* Inputs */
input[type=text], input[type=password], textarea, select {
    border: 2px solid #0c1e42;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    font-size: 16px;
    box-sizing: border-box;
}

/* Footer */
footer {
    padding: 15px;
    color: white;
    background-color: black;
    text-align: center;
    margin-top: auto;
}

/* ========== RESPONSIVE LAYOUT ========== */

/* Make table layouts flex-based on smaller screens */
@media (max-width: 900px) {
    table {
        width: 100% !important;
    }

    td {
        display: block;
        width: 100% !important;
        text-align: center;
    }

    td img {
        max-width: 100%;
        height: auto;
    }

    form {
        max-width: 90%;
        margin: 0 auto;
        background: #fff;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0px 2px 10px rgba(0,0,0,0.1);
    }

    .style2 {
        display: block;
        text-align: center;
        margin-bottom: 10px;
        font-size: 20px !important;
    }
}

/* Extra small devices */
@media (max-width: 500px) {
    h1.style8 {
        font-size: 20px;
        padding: 10px;
    }

    input[type=submit] {
        width: 100%;
    }

    footer {
        font-size: 14px;
    }
}
/* ========== FLEXBOX LAYOUT ========== */

.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px;
    flex-wrap: wrap;
}

.login-right {
    flex: 1 1 300px;
    max-width: 400px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-right form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-note {
    background-color: #0c1e42; /* Dark blue background */
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 16px;
}

/* Dashboard links after login */
.dashboard-links {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;    /* Centers vertically within its container */
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px auto;
    max-width: 600px; /* Keeps them nicely centered as a group */
    text-align: center;
}

.dashboard-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-width: 150px;
}

.dashboard-item img {
    max-width: 70px;
    margin-bottom: 10px;
}

.dashboard-item span {
    font-weight: bold;
    color: #000;
    font-size: 16px;
}

.dashboard-item:hover {
    transform: translateY(-3px);
    background: #f0f0f0;
}

.dashboard-item:hover {
    transform: translateY(-3px);
    background: #f0f0f0;
}
.head1 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 24px;
	color: #FF0000;
	text-align: center;
	font-weight: bold;
}
.tot {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	color: #000000;
}
.tot {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: bold;
	color: #000000;
}
.tans {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: bold;
	color:#00CC66 ;
}
.fans {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: bold;
	color:#FF0000 ;
}