/* Main Styles for Assessment System */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

}

footer {
    margin-top: auto;
}

/* Auth Pages */
.auth-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Class Cards */
.class-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    height: 100%;
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.class-card .card-body {
    display: flex;
    flex-direction: column;
}

.class-card .btn {
    margin-top: auto;
}

/* Subject List */
.subject-list {
    list-style: none;
    padding: 0;
}

.subject-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.subject-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Paper Generator Form */
.paper-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.question-count-control {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.question-count-control label {
    margin-right: 1rem;
    min-width: 200px;
}

/* Admin Panel */
.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-5px);
}

.admin-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.admin-card h3 {
    margin-bottom: 0.5rem;
}

/* Generated Paper */
.paper-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ddd;
}

.paper-section {
    margin-bottom: 2rem;
}

.paper-section h3 {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}

.question {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #ddd;
}

.question:last-child {
    border-bottom: none;
}

.question-number {
    font-weight: bold;
    margin-right: 0.5rem;
}

.question-marks {
    font-weight: normal;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.options {
    list-style-type: lower-alpha;
    padding-left: 2rem;
    margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-dashboard {
        grid-template-columns: 1fr;
    }
    
    .auth-container {
        margin: 1rem;
        padding: 1.5rem;
    }
} 


/* Added by me */


/* Adjust the width: Chapter Name takes 85% of the space, Chapter Number takes 15% */
.chapter-fields {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chapter-fields .form-control {
    margin-bottom: 10px;
}

/* Chapter Name takes 85% of the width */
.chapter-fields .chapter-name {
    flex: 0 0 85%; /* 85% of the width */
    width: 100%;
}

/* Chapter Number takes 15% of the width */
.chapter-fields .chapter-number {
    flex: 0 0 15%; /* 15% of the width */
    width: 100%;
}

/* Adjust the layout and alignment to keep them in one line */
.chapter-fields .flex-grow-1 {
    flex-grow: 1;
    margin-right: 10px;
}

.chapter-fields .flex-shrink-0 {
    flex-shrink: 0;
}

/* Keep the inputs aligned in one row */
.mb-3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.p-boxes{
    justify-content: center;
    align-items: center;
}
