/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.logo h1 {
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: #667eea;
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-student {
    background: #4299e1;
    color: white;
}

.btn-admin {
    background: #48bb78;
    color: white;
}

.btn-neuro {
    background: #9f7aea;
    color: white;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    color: white;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Job Openings Section */
.job-openings {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.job-openings h2 {
    margin-bottom: 20px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 10px;
}

#jobs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.job-card {
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.job-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.job-card h3 {
    color: #2d3748;
    margin-bottom: 10px;
}

.job-card h4 {
    color: #4a5568;
    margin-bottom: 10px;
    font-weight: 500;
}

.job-desc {
    color: #718096;
    margin: 15px 0;
    line-height: 1.5;
}

.job-actions {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.btn-apply {
    background: #48bb78;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-view {
    background: #4299e1;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-box .logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-box .logo i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* Alert Messages */
.alert {
    padding: 12px;
    border-radius: 5px;
    margin-top: 15px;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

/* Dashboard Styles */
.dashboard-nav {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-content {
    display: grid;
    gap: 20px;
}

.dashboard-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-card h3 {
    margin-bottom: 20px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form Rows for Dashboard */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Applications List */
.applications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.application-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.app-info h4 {
    margin-bottom: 5px;
    color: #2d3748;
}

.company {
    color: #4a5568;
    font-size: 0.9rem;
}

.date {
    color: #718096;
    font-size: 0.8rem;
}

/* Status Badges */
.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: #feebc8;
    color: #744210;
}

.status-reviewed {
    background: #bee3f8;
    color: #2c5282;
}

.status-accepted {
    background: #c6f6d5;
    color: #22543d;
}

.status-rejected {
    background: #fed7d7;
    color: #742a2a;
}

/* Quick Actions */
.quick-actions {
    text-align: center;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-action {
    background: #4299e1;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: #2d3748;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: white;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .application-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
    color: #4a5568;
}

.fa-spin {
    margin-right: 10px;
}

/* Back Home Link */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #667eea;
    text-decoration: none;
    margin-bottom: 20px;
}

.back-home:hover {
    text-decoration: underline;
}

/* Login Info */
.login-info {
    margin-top: 20px;
    padding: 15px;
    background: #e6fffa;
    border-radius: 5px;
    color: #234e52;
    font-size: 0.9rem;
}

.login-info i {
    margin-right: 8px;
}


/* Add these styles to your existing style.css */

/* Account Info */
.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-info small {
    color: #718096;
    font-size: 0.8rem;
}

/* Applications Stats */
.applications-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background: #f7fafc;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #4299e1;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
}

/* Security Options */
.security-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
}

.security-item i {
    font-size: 1.5rem;
    color: #4299e1;
}

.security-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-security {
    padding: 10px 20px;
    background: #e2e8f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-security:hover {
    background: #cbd5e0;
}

.btn-danger {
    background: #fed7d7;
    color: #c53030;
}

.btn-danger:hover {
    background: #fc8181;
}

/* No Applications State */
.no-applications {
    text-align: center;
    padding: 40px 20px;
}

.no-applications h4 {
    margin-bottom: 10px;
    color: #4a5568;
}

/* File Preview */
.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 5px;
    margin-top: 10px;
}

.file-info i {
    font-size: 1.5rem;
    color: #4299e1;
}

/* Status Badges */
.status-active {
    background: #c6f6d5;
    color: #22543d;
}

/* Resume Links */
.resume-link {
    margin: 0 10px;
    color: #4299e1;
    text-decoration: none;
}

.resume-link:hover {
    text-decoration: underline;
}

.no-resume {
    color: #e53e3e;
    margin-bottom: 10px;
}

/* ============================================
   LOGIN & REGISTRATION PAGE STYLES
   ============================================ */

/* Login Container Styling */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #9f7aea, #ed64a6);
}

/* Logo Styling */
.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #9f7aea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.logo-circle i {
    font-size: 2.5rem;
    color: white;
}

.login-logo h2 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.login-logo .subtitle {
    color: #718096;
    font-size: 0.95rem;
}

/* Form Styling */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #667eea;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    z-index: 1;
}

.input-with-icon input,
.input-with-icon select,
.input-with-icon textarea {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.input-with-icon input:focus,
.input-with-icon select:focus,
.input-with-icon textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-with-icon input::placeholder {
    color: #a0aec0;
}

/* Password Field Specific */
.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #667eea;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Button Styling */
.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #edf2f7;
}

/* Register/Login Link */
.register-link,
.login-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
    color: #718096;
    font-size: 0.95rem;
}

.register-link a,
.login-link a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.register-link a:hover,
.login-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Login Info */
.login-info {
    margin-top: 25px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #48bb78;
}

.login-info p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: #4a5568;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.login-info i {
    color: #48bb78;
    margin-top: 2px;
}

/* Password Strength Meter */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background: #e53e3e;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-text {
    font-size: 0.85rem;
    color: #718096;
}

/* Terms Checkbox */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 3px;
}

.terms-checkbox label {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.4;
}

.terms-checkbox a {
    color: #667eea;
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Error Messages */
.error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message i {
    font-size: 0.9rem;
}

/* Success Messages */
.success-message {
    color: #48bb78;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.success-message i {
    font-size: 0.9rem;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Row for Registration */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* File Upload Styling */
.file-upload {
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.file-upload:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.file-upload i {
    font-size: 2.5rem;
    color: #a0aec0;
    margin-bottom: 15px;
}

.file-upload input[type="file"] {
    display: none;
}

/* Back Home Link */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-home:hover {
    color: #764ba2;
}

/* Admin Features Grid */
.admin-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.feature-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    background: #edf2f7;
}

.feature-item i {
    color: #48bb78;
    font-size: 1.2rem;
}

/* Security Notice */
.security-notice {
    background: #fff5f5;
    border-left: 4px solid #e53e3e;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.security-notice i {
    color: #e53e3e;
}

/* Demo Credentials */
.demo-credentials {
    background: #ebf8ff;
    border-left: 4px solid #4299e1;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.demo-credentials code {
    background: #c6f6d5;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

/* Animation for form */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box {
    animation: slideIn 0.5s ease;
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-box {
        padding: 25px;
        margin: 10px;
    }
    
    .login-logo h2 {
        font-size: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}