/* Main Styles for NIRM Job Application Portal */

/* Global Styles and Typography */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #e9f5ff;
    --text-color: #333333;
    --light-text: #666666;
    --border-color: #cccccc;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-top: 30px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
}

/* Header Styles */
.main-header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.hindi-text {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.english-text {
    display: block;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.tagline {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 2px 0;
    transition: var(--transition);
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    text-align: center;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border: 1px solid var(--info-color);
    color: var(--info-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #004494;
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #002244;
    color: var(--white);
}

.btn-success {
    background-color: var(--success-color);
    color: var(--white);
}

.btn-success:hover {
    background-color: #218838;
    color: var(--white);
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #c82333;
    color: var(--white);
}

.btn-apply {
    background-color: var(--success-color);
    color: var(--white);
    width: 100%;
    margin-top: 15px;
}

.btn-apply:hover {
    background-color: #218838;
}

/* Home Page Styles */
.hero-section {
    text-align: center;
    padding: 50px 0;
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    margin: 30px 0;
}

.hero-section h1 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.notification-box {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px auto;
    max-width: 800px;
    box-shadow: var(--box-shadow);
}

.notification-box h2 {
    color: var(--primary-color);
    border-bottom: none;
    display: flex;
    align-items: center;
}

.notification-box h2 i {
    margin-right: 10px;
}

.cta-buttons {
    margin-top: 20px;
}

.job-positions {
    margin: 50px 0;
}

.position-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.position-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.position-details {
    margin-bottom: 20px;
}

.position-details p {
    margin-bottom: 10px;
}

.application-process {
    margin: 50px 0;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px;
}

.step {
    flex: 1;
    min-width: 200px;
    margin: 15px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step-content h3 {
    margin-bottom: 10px;
}

.important-dates {
    margin: 50px 0;
}

.dates-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px;
}

.date-item {
    flex: 1;
    min-width: 200px;
    margin: 15px;
    text-align: center;
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.date {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.terms-section {
    margin: 50px 0;
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Footer Styles */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section a {
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
    margin-left: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.contact i {
    margin-right: 10px;
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Form Styles */
.form-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--box-shadow);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-text {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-top: 5px;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-check-input {
    margin-right: 10px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.form-col {
    flex: 1;
    padding: 0 15px;
    min-width: 300px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

thead {
    background-color: var(--primary-color);
    color: var(--white);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: var(--accent-color);
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    flex-wrap: wrap;
    margin: 30px -15px;
}

.dashboard-card {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.dashboard-card h3 i {
    margin-right: 10px;
}

.dashboard-card p {
    margin-bottom: 20px;
}

.dashboard-card .btn {
    margin-top: 10px;
}

.application-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.status-draft {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.status-submitted {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.status-withdrawn {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.status-rejected {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

/* Application Form Styles */
.application-form-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--box-shadow);
}

.application-form-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-section-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.photo-upload-container {
    width: 200px;
    height: 200px;
    border: 2px dashed var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
}

.photo-preview {
    max-width: 150px;
    max-height: 150px;
    margin-bottom: 10px;
}

.file-upload-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-btn:hover {
    background-color: #004494;
}

.file-upload-input {
    display: none;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Confirmation Page Styles */
.confirmation-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    margin: 50px auto;
    max-width: 800px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.confirmation-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.confirmation-title {
    color: var(--success-color);
    margin-bottom: 20px;
}

.application-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 20px 0;
    padding: 10px;
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    display: inline-block;
}

.confirmation-message {
    margin-bottom: 30px;
}

.confirmation-actions {
    margin-top: 30px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-self: flex-end;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .process-steps, .dates-container {
        flex-direction: column;
    }
    
    .step, .date-item {
        margin: 10px 0;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-col {
        padding: 0;
    }
}
/* Table specific styles for responsiveness and content handling */
.form-section table {
    width: 100%; /* Ensure table takes full width of its container */
    table-layout: fixed; /* Fix table layout to prevent content overflow from widening columns */
    word-wrap: break-word; /* Break long words to prevent overflow */
}

.form-section table th,
.form-section table td {
    padding: 8px; /* Add some padding for better readability */
    border: 1px solid var(--border-color); /* Add borders for clear cell separation */
    text-align: left; /* Align text to the left */
    vertical-align: top; /* Align content to the top for multi-line text */
}

/* Specific adjustments for input fields within table cells if needed */
.form-section table input[type="text"],
.form-section table input[type="email"],
.form-section table input[type="number"],
.form-section table textarea,
.form-section table select {
    width: calc(100% - 16px); /* Account for padding if inputs are within cells directly */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Media query for smaller screens to ensure horizontal scrolling if table is too wide */
@media screen and (max-width: 768px) {
    .table-responsive {
        overflow-x: auto; /* Enable horizontal scrolling for tables on smaller screens */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS devices */
    }

    .form-section table {
        display: block; /* Allows table to be scrolled horizontally */
        width: max-content; /* Table will take content width */
    }
}