/**
 * Frontline Employee Styles
 * Simplified, clean interface for frontline workers
 */

/* Frontline Navigation Styles */
.frontline-nav-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.frontline-nav-header h3 {
    margin: 0;
    font-weight: 600;
    text-align: center;
}

.frontline-nav-menu {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.frontline-nav-btn {
    flex: 1;
    min-width: 150px;
    padding: 0.8rem 1rem;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.frontline-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.frontline-nav-btn i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

/* Frontline Dashboard Styles */
.frontline-improvement-dashboard {
    padding: 1rem;
}

.frontline-improvement-dashboard .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.frontline-improvement-dashboard .card-header {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
}

/* Improvement Stats */
.improvement-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.stat-label {
    font-weight: 500;
    color: #6c757d;
}

.stat-value {
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
}

/* Payment History Styles */
.frontline-payment-history {
    padding: 1rem;
}

.payment-stat-card {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.payment-stat-card h5 {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    opacity: 0.9;
}

.payment-stat-card h2 {
    margin: 0;
    font-weight: 600;
}

.payment-summary {
    margin-bottom: 2rem;
}

.payment-history-table .table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.payment-history-table .table thead {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
}

.payment-history-table .table thead th {
    border: none;
    font-weight: 500;
}

/* Read-only notices */
.readonly-notice {
    border-left: 4px solid #17a2b8;
    background: rgba(23, 162, 184, 0.1);
    border-radius: 0.25rem;
}

/* Simplified improvement form */
#frontlineImprovementModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#frontlineImprovementModal .modal-header {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

#frontlineImprovementModal .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

#frontlineImprovementModal .form-control:focus {
    border-color: #74b9ff;
    box-shadow: 0 0 0 0.2rem rgba(116, 185, 255, 0.25);
}

/* Permission-based hiding */
.permission-hidden {
    display: none !important;
}

.role-indicator {
    display: none !important;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .frontline-nav-menu {
        flex-direction: column;
    }
    
    .frontline-nav-btn {
        min-width: unset;
        margin-bottom: 0.5rem;
    }
    
    .payment-stat-card {
        margin-bottom: 0.5rem;
    }
    
    .improvement-stats {
        gap: 0.5rem;
    }
}

/* Animation for smooth transitions */
.frontline-content {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced buttons for frontline users */
.frontline-action-btn {
    background: linear-gradient(135deg, #00cec9 0%, #55a3ff 100%);
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.frontline-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: white;
}

/* Success/info indicators for frontline users */
.frontline-success {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.frontline-info {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
}

/* Simplified card layout for frontline */
.frontline-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.frontline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.frontline-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.frontline-card-header i {
    font-size: 1.5rem;
    margin-right: 0.8rem;
    color: #74b9ff;
}

.frontline-card-header h5 {
    margin: 0;
    color: #2d3436;
    font-weight: 600;
}

.frontline-card-body {
    color: #636e72;
    line-height: 1.6;
}

/* Loading states for frontline interface */
.frontline-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #74b9ff;
}

.frontline-loading i {
    font-size: 2rem;
    margin-right: 1rem;
}

/* Error states for frontline interface */
.frontline-error {
    background: linear-gradient(135deg, #ff7675 0%, #e17055 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
}

/* Empty states for frontline interface */
.frontline-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #636e72;
}

.frontline-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.frontline-empty h5 {
    color: #636e72;
    margin-bottom: 0.5rem;
}

.frontline-empty p {
    color: #636e72;
    margin: 0;
}