body {
    margin: 0;
    font-family: 'Segoe UI';
    background: linear-gradient(to right, #1e3c72, #2a5298);
    color: #333;
}

/* 🔝 Header Layout */
.main-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 12px 20px;
    background: #111;
    color: white;
}

.main-header a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
}

.dashboard {
    padding: 30px;
}

/* 🎯 Dashboard Title */
.dashboard-title {
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

/* 📊 Cards Layout */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    	
}

/* 📦 Card */
.card {
    flex: 1 1 200px;
    background: #35b5ff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* 🔘 Action Cards */
.action-card {
    background: linear-gradient(135deg, #4facfe, #00c6ff);
    color: white;
}

/* 🔗 Button inside card */
.card-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.card-btn:hover {
    background: #eee;
}

table {
    width: 100%;
    background: white;
    border-collapse: collapse;
}

table th, table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.container {
    width: 350px;
    margin: 80px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
}

input, button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

button {
    background: #2a5298;
    color: white;
    border: none;
}


.footer {
    text-align: center;
    padding: 10px;
    background: #111;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
}


.download-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: green;
    color: white;
    text-decoration: none;
}

.error {
    color: red;
    margin-top: 15px;
}
.login-container {
    width: 350px;
    margin: 120px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.login-container input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background: #2a5298;
    color: white;
    border: none;
}

/* 🌐 Base Layout */
.result-wrapper {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* 📦 Card */
.result-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* 📝 Form */
.result-card input {
    width: 90%;
    padding: 14px;
    margin: 10px 0;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.result-card button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.result-card button:hover {
    background: #4a5bdc;
}

/* 📄 Result Display */
.result-box {
    margin-top: 20px;
}

/* 🖼️ Image */
.result-img {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

/* 📄 PDF */
.pdf-view {
    width: 100%;
    height: 400px;
    border: none;
    margin-top: 10px;
}

/* ⬇ Download */
.download-btn {
    display: block;
    margin-top: 15px;
    padding: 12px;
    background: green;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

/* ❌ Error */
.error {
    color: red;
    margin-top: 15px;
}

/* 📱 MOBILE OPTIMIZATION */
@media (max-width: 480px) {

    .result-card {
        padding: 20px;
    }

    .result-card h2 {
        font-size: 20px;
    }

    .result-card input,
    .result-card button {
        font-size: 15px;
        padding: 12px;
    }

    .pdf-view {
        height: 300px;
    }
}

/* 🔝 Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    background: #0a1145;
    color: white;
}

/* 🧩 Logo Section */
.logo-section {
    display: flex;
    align-items: center;
}

/* 🖼️ Logo */
.logo {
    height: 45px;
    width: auto;
    margin-right: 10px;
}

/* 🏷️ Title */
.site-title {
    font-size: 18px;
    font-weight: bold;
}

/* 🎓 Center Title */
.header-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

/* 🔗 Navigation */
.main-header nav a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
    font-size: 14px;
}

.main-header nav a:hover {
    color: #4facfe;
}

@media (max-width: 600px) {
    
    .main-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-section {
        margin-bottom: 10px;
    }

    .main-header nav {
        width: 100%;
    }

    .main-header nav a {
        display: inline-block;
        margin: 5px 10px 0 0;
    }
}

@media (max-width: 600px) {

    .result-wrapper {
    min-height: 68vh;
    display: flex;
    justify-content: center;
    align-items: center;
   }

    .main-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 15px 10px;
    }

    /* 🖼️ Center Logo */
    .logo-section {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .logo {
        height: 50px;
        margin: 0 auto;
    }

    /* 🎓 Center Title */
    .header-title {
        text-align: center;
        font-size: 18px;
        width: 100%;
    }

    /* 🔗 Navigation */
    .main-header nav {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .main-header nav a {
        margin: 5px;
    }
}
.success {
    color: green;
    margin-top: 10px;
}

.error {
    color: red;
    margin-top: 10px;
}