/* style.css - D K Associates Main Stylesheet */

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #17a2b8;
    --light: #ecf0f1;
    --dark: #34495e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary { background: var(--secondary); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-info { background: var(--info); color: white; }
.btn-light { background: white; color: var(--dark); border: 1px solid #ddd; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.password-strength {
    height: 5px;
    margin-top: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-0 { width: 20%; background-color: #e74c3c; }
.strength-1 { width: 40%; background-color: #e67e22; }
.strength-2 { width: 60%; background-color: #f1c40f; }
.strength-3 { width: 80%; background-color: #2ecc71; }
.strength-4 { width: 100%; background-color: #27ae60; }

.password-requirements {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.requirement {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.requirement.valid {
    color: #27ae60;
}

.requirement.invalid {
    color: #e74c3c;
}

/* About Us Page Specific Styles */
.faq-section {
    margin-bottom: 25px;
}

.faq-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
}

.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.6;
}

.faq-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.faq-motto {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    margin: 25px 0;
}

.faq-motto h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.faq-motto p {
    font-size: 18px;
    font-style: italic;
    color: #2c3e50;
    margin: 0;
    line-height: 1.6;
}

.faq-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.close-faq-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-faq-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive styles for About page */
@media (max-width: 768px) {
    .faq-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .faq-section h3 {
        font-size: 18px;
    }
    
    .faq-motto p {
        font-size: 16px;
    }
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-label.required::after {
    content: " *";
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.alert {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: inherit;
}

.logo-text h1 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 12px;
    color: #666;
}

.nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--light);
}

.nav-link.active {
    background: var(--light);
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav.show {
        display: flex;
    }
}

.tabs {
    display: flex;
    gap: 5px;
    background: white;
    border-radius: 4px;
    padding: 5px;
    margin: 20px 0;
    overflow-x: auto;
}

.tab {
    flex: 1;
    padding: 12px 15px;
    text-align: center;
    background: #f8f9fa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    min-width: 150px;
    transition: all 0.3s ease;
}

.tab:hover {
    background: #e9ecef;
}

.tab.active {
    background: var(--secondary);
    color: white;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary);
    margin: 10px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 700;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.badge-pending { background: #fff3cd; color: #856404; }
.badge-shortlisted { background: #d4edda; color: #155724; }
.badge-rejected { background: #f8d7da; color: #721c24; }
.badge-interviewed { background: #d1ecf1; color: #0c5460; }
.badge-hired { background: #c3e6cb; color: #155724; }
.badge-active { background: #d4edda; color: #155724; }
.badge-inactive { background: #f8d7da; color: #721c24; }
.badge-pending-approval { background: #fff3cd; color: #856404; }
.badge-approved { background: #d4edda; color: #155724; }

.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eee;
    background: white;
}

.vacancy-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--secondary);
}

.vacancy-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.vacancy-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.vacancy-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vacancy-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--secondary);
}

.profile-info h3 {
    margin-bottom: 5px;
}

.profile-info p {
    color: #666;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin: 0 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--success);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.format-switch-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.format-label {
    font-weight: 600;
    margin-right: 10px;
}

.email-format-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.email-format-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    border-bottom: 3px solid transparent;
}

.email-format-tab.active {
    border-bottom-color: var(--secondary);
    color: var(--secondary);
}

.email-content-area {
    display: none;
}

.email-content-area.active {
    display: block;
}

.application-details {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.detail-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #666;
}

.detail-value {
    color: var(--dark);
}

.interview-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.interview-history {
    margin-top: 20px;
}

.interview-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid var(--info);
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Recommended: Clean button style */
.container .card a[href="?page=vacancies"] {
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.container .card a[href="?page=vacancies"]:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: rgba(255,255,255,0.25);
}

/* Add icon with some spacing */
.container .card a[href="?page=vacancies"]:before {
    content: '📋 ';
    margin-right: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.container .card a[href="?page=vacancies"]:hover:before {
    transform: translateX(2px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.w-100 { width: 100%; }
.mt-3 { margin-top: 15px; }
.mb-3 { margin-bottom: 15px; }
.text-center { text-align: center; }

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .contact-info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-icon {
        margin-bottom: 10px;
    }
    
    .map-container iframe {
        height: 300px;
    }
}