/* Unified Styles for MyPM System */
/* This stylesheet provides consistent styling across all features */

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1,
.page-header h2,
.page-header h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.page-header .subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Consistent Button Groups */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons .btn-group {
    margin-right: 0;
}

/* Cards with Consistent Styling */
.feature-card {
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    transform: translateY(-2px);
}

.feature-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,.125);
    font-weight: 600;
}

.feature-card .card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0,0,0,.125);
}

/* Statistics Cards */
.stat-card {
    border-radius: 0.5rem;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card h5 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stat-card p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Pipeline Visualization */
.pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
    overflow-x: auto;
    padding: 1rem 0;
}

.pipeline-step {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin: 0 0.5rem;
    min-width: 120px;
    transition: all 0.3s ease;
}

.pipeline-step:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

.pipeline-step .step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.pipeline-step .step-header h6 {
    margin: 0;
    font-weight: 600;
}

.pipeline-arrow {
    color: #6c757d;
    font-size: 1.5rem;
    margin: 0 0.5rem;
}

/* Table Styling */
.data-table {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
}

.data-table thead {
    background-color: #f8f9fa;
}

.data-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Search Containers */
.search-container {
    max-width: 400px;
}

.search-container .input-group {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
}

.search-container .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Navigation Pills */
.nav-pills-custom .nav-link {
    color: #495057;
    background-color: #f8f9fa;
    margin-right: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.nav-pills-custom .nav-link:hover {
    background-color: #e9ecef;
}

.nav-pills-custom .nav-link.active {
    background-color: #007bff;
    color: white;
}

/* Feature Sections */
.feature-section {
    margin-bottom: 3rem;
}

.feature-section-header {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.feature-section-header h4 {
    margin-bottom: 0;
    color: #333;
}

/* Quick Action Buttons */
.quick-actions {
    display: grid;
    gap: 0.75rem;
}

.quick-actions .btn {
    text-align: left;
    justify-content: flex-start;
}

/* Status Badges */
.badge-status {
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    padding-left: 2rem;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.activity-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.activity-item:last-child {
    padding-bottom: 0;
}

.activity-icon {
    position: absolute;
    left: -1.25rem;
    width: 2rem;
    height: 2rem;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Enhancements */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Form Enhancements */
.form-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-section h5 {
    margin-bottom: 1rem;
    color: #333;
}

/* Loading States */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading-container .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table-responsive table {
        font-size: 0.875rem;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 0.5rem;
    }
}

/* Cross-Feature Navigation */
.cross-nav-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.cross-nav-buttons .btn {
    display: block;
    margin-bottom: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,.15);
}

/* Unified Color Palette */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Feature-specific color overrides */
.recruitment-feature {
    --primary-color: #5e72e4;
}

.questionnaire-feature {
    --primary-color: #11cdef;
}

.template-feature {
    --primary-color: #2dce89;
}

.email-feature {
    --primary-color: #fb6340;
}

/* Consistent spacing */
.mb-section {
    margin-bottom: 3rem;
}

.mt-section {
    margin-top: 3rem;
}

/* Enhanced dropdown menus */
.dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    border: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.active {
    background-color: var(--primary-color);
}