/**
 *
 * Apply Here your Custom CSS
 *
*/

*{
    box-sizing: border-box;
}

body {
    background-color: #f6f6f6;
    padding-top:50px;
}

textarea{
    resize: none;
    height: 70px !important;
}

.control-label{
    margin-top: 5px;
}

.panel{
    margin: 20px auto;
    max-width: 1000px;
    /*    text-align: center;*/
}

.panel-heading{
    border-bottom: solid 1px #ddd;
    padding: 10px;
    font-size: 14px;
}

.install-step-group{
    margin: 20px 0;
}

.install-step-group > div{
    padding:0;
}

.circle{
    background-color: #fff;
    border: solid 3px #679368;
    color: #679368;
    width:38px;
    text-align: center;
    font-size: 16px;
    padding: 5px;
    border-radius: 50%;
    margin: 10px 0;
}

.circle.active{
    background-color: #679368;
    color: #fff;
    border:double 3px #fff;
}

.clear{
    width: 100%;
    clear: both;
    height: 0;
    float: none;
}

.tips{
    color: #f00;
}

.step-line{
    background-color:#679368;
    height: 10px;
    top:-35px;
    left: 5px;
    z-index: -1;
    position: relative;
}

@media (max-width: 768px){
    .install-step-group{
        display: none;
    }
}

/* ===== Modal Fix: Align below sticky header with vertical scroll ===== */

/* For non-ajax modals: constrain and enable scroll */
.modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 80px);
    overflow: hidden;
}

.modal-header {
    flex-shrink: 0;
}

.modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
}

.modal-footer {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .modal-content {
        max-height: calc(100vh - 70px);
    }
}

/* ===== Modern Application Page Styling ===== */

/* Modern Card Design */
.applicant-modern {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: #ffffff;
    margin-top: 20px;
}

.applicant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

.applicant-heading {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.applicant-heading i {
    margin-right: 12px;
    font-size: 28px;
}

.applicant-subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 300;
}

.applicant-new-btn {
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.applicant-new-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #2c3e50 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 50px;
}

.applicant-new-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.applicant-new-btn:hover:before {
    opacity: 1;
}

.applicant-new-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

/* Status Rail */
.applicant-layout {
    display: flex;
    min-height: 600px;
}

.status-column {
    width: 240px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 20px 0;
}

.applicant-rail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 20px;
}

.applicant-status-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.applicant-status-filter:hover {
    background: #f1f3f5;
    transform: translateX(4px);
    border-color: #dee2e6;
}

.applicant-status-filter.is-active {
    background: #e7f5ff;
    color: #228be6;
    border-color: #a5d8ff;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #adb5bd;
}

.applicant-status-filter.is-active .status-dot {
    background: #228be6;
    box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.2);
}

/* Table Column */
.table-column {
    flex: 1;
    padding: 30px;
}

.applicant-surface {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Modern Table */
.modern-table {
    border: none;
    border-collapse: separate;
    border-spacing: 0;
}

.modern-table thead th {
    border: none;
    background: #f8f9fa;
    padding: 16px 20px;
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e9ecef;
}

.modern-table thead th div {
    display: flex;
    align-items: center;
}

.modern-table thead th i {
    margin-right: 8px;
    color: #868e96;
}

.modern-table tbody td {
    padding: 20px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    font-size: 14px;
}

.modern-table tbody tr {
    transition: all 0.2s ease;
}

.modern-table tbody tr:hover {
    background: #2a2c69;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.modern-table tbody tr.active {
    background: #151d2e;
}

/* Status Badges */
.applicant-status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Applicant Name Cell */
.applicant-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.applicant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
}

.applicant-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.applicant-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.applicant-email {
    font-size: 12px;
    color: #868e96;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Position Cell */
.position-cell {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #495057;
}

.position-cell i {
    color: #868e96;
    margin-right: 8px;
}

/* Date Cell */
.date-cell {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #495057;
}

.date-cell i {
    color: #868e96;
    margin-right: 8px;
}

.status-applied {
    background: #e7f5ff;
    color: #228be6;
}

.status-on_review {
    background: #fff3bf;
    color: #f08c00;
}

.status-interviewed {
    background: #d3f9d8;
    color: #2b8a3e;
}

.status-offered {
    background: #e6fcf5;
    color: #0ca678;
}

.status-hired {
    background: #d0ebff;
    color: #1c7ed6;
}

.status-declined {
    background: #ffe3e3;
    color: #fa5252;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #495057;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-state p {
    color: #868e96;
    font-size: 16px;
    margin-bottom: 30px;
}

.empty-state-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.empty-state-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    color: white;
}

.btn-edit {
    background: #e7f5ff;
    color: #228be6;
}

.btn-edit:hover {
    background: #d0ebff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 139, 230, 0.2);
}

.btn-delete {
    background: #ffe3e3;
    color: #fa5252;
}

.btn-delete:hover {
    background: #ffc9c9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(250, 82, 82, 0.2);
}

/* DataTables Customization */
.dataTables_wrapper {
    margin-top: 20px;
}

.dataTables_filter input {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dataTables_filter input:focus {
    outline: none;
    border-color: #228be6;
    box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.1);
}

.dataTables_length select {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
}

.dataTables_paginate .paginate_button {
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    margin: 0 4px !important;
    padding: 8px 16px !important;
    transition: all 0.2s ease !important;
}

.dataTables_paginate .paginate_button:hover {
    background: #f8f9fa !important;
    border-color: #adb5bd !important;
}

.dataTables_paginate .paginate_button.current {
    background: #228be6 !important;
    color: white !important;
    border-color: #228be6 !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .applicant-layout {
        flex-direction: column;
    }
    
    .status-column {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .applicant-rail {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px 20px;
    }
    
    .applicant-status-filter {
        white-space: nowrap;
        min-width: 120px;
    }
    
    .applicant-status-filter:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 768px) {
    .applicant-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .applicant-new-btn {
        align-self: flex-start;
    }
    
    .table-column {
        padding: 20px;
    }
    
    .modern-table thead {
        display: none;
    }
    
    .modern-table tbody td {
        display: block;
        text-align: right;
        padding: 12px 20px;
        position: relative;
    }
    
    .modern-table tbody td:before {
        content: attr(data-label);
        position: absolute;
        left: 20px;
        font-weight: 600;
        color: #495057;
        text-transform: uppercase;
        font-size: 12px;
    }
    
    .modern-table tbody tr {
        margin-bottom: 20px;
        display: block;
        border: 1px solid #e9ecef;
        border-radius: 12px;
        padding: 0;
    }
    
    .modern-table tbody tr:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
}

/* Animation for new applicant button */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

.applicant-new-btn {
    animation: pulse 3s infinite;
}
