/* Employee Points Manager - Modern Frontend Styles */

/* Container chính */
.eps-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Form Container */
.eps-form-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.eps-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.eps-form-container.services-form {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 20px 60px rgba(17, 153, 142, 0.3);
}

.eps-form-container.points-form {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 20px 60px rgba(240, 147, 251, 0.3);
}

/* Form Header */
.eps-form-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.eps-form-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.eps-form-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

/* Form Fields */
.eps-form-floating {
    position: relative;
    margin-bottom: 25px;
}

.eps-form-floating .form-control,
.eps-form-floating .form-select {
    background: rgba(255,255,255,0.95);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #2d3748;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.eps-form-floating .form-control:focus,
.eps-form-floating .form-select:focus {
    background: white;
    border-color: rgba(255,255,255,0.8);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.2), 0 12px 40px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.eps-form-floating label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: transparent;
    color: #718096;
    font-weight: 600;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.eps-form-floating .form-control:focus + label,
.eps-form-floating .form-control:not(:placeholder-shown) + label,
.eps-form-floating .form-select:focus + label,
.eps-form-floating .form-select:not([value=""]) + label {
    top: -8px;
    left: 15px;
    font-size: 12px;
    color: white;
    background: rgba(0,0,0,0.1);
    padding: 4px 8px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* Textarea */
.eps-form-floating textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Submit Button */
.eps-submit-btn {
    width: 100%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-weight: 700;
    font-size: 18px;
    padding: 18px 30px;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.eps-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.eps-submit-btn:hover::before {
    left: 100%;
}

.eps-submit-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.eps-submit-btn:active {
    transform: translateY(-1px);
}

/* Info Alerts */
.eps-info-alert {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    color: white;
    animation: slideInUp 0.5s ease-out;
}

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

/* Quick Amount Buttons */
.quick-amounts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.quick-amounts .btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.quick-amounts .btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Messages */
.eps-message {
    margin-top: 20px;
    border-radius: 15px;
    padding: 15px 20px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.eps-message .alert-success {
    background: rgba(72, 187, 120, 0.2);
    border: 1px solid rgba(72, 187, 120, 0.3);
    color: white;
}

.eps-message .alert-danger {
    background: rgba(245, 101, 101, 0.2);
    border: 1px solid rgba(245, 101, 101, 0.3);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .eps-container {
        padding: 15px;
    }
    
    .eps-form-container {
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    .eps-form-title {
        font-size: 2rem;
    }
    
    .quick-amounts {
        justify-content: center;
    }
}

/* Reports Container */
.eps-reports-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.eps-reports-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f7fafc;
}

.eps-reports-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Filter Container */
.eps-filter-container {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

/* Stats Grid */
.eps-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.eps-stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.eps-stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.eps-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4);
}

.eps-stats-card.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 15px 35px rgba(17, 153, 142, 0.3);
}

.eps-stats-card.success:hover {
    box-shadow: 0 25px 50px rgba(17, 153, 142, 0.4);
}

.eps-stats-card.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 15px 35px rgba(240, 147, 251, 0.3);
}

.eps-stats-card.warning:hover {
    box-shadow: 0 25px 50px rgba(240, 147, 251, 0.4);
}

.eps-stats-card.danger {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 15px 35px rgba(79, 172, 254, 0.3);
}

.eps-stats-card.danger:hover {
    box-shadow: 0 25px 50px rgba(79, 172, 254, 0.4);
}

.eps-stats-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.eps-stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.eps-stats-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Navigation Pills */
.eps-nav-pills {
    background: #f7fafc;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.eps-nav-pills .nav-link {
    border-radius: 12px;
    padding: 12px 20px;
    color: #4a5568;
    border: none;
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.eps-nav-pills .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.eps-nav-pills .nav-link:hover:not(.active) {
    background: #e2e8f0;
    color: #2d3748;
}

/* Table Container */
.eps-table-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.eps-table {
    margin-bottom: 0;
}

.eps-table th {
    background: #f7fafc;
    border: none;
    font-weight: 700;
    color: #2d3748;
    padding: 15px 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eps-table td {
    border: none;
    padding: 15px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.eps-table tbody tr:hover {
    background: #f8fafc;
}

.eps-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.eps-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eps-badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.eps-badge-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.eps-badge-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* Tab Content */
.eps-tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.eps-tab-content.active {
    display: block;
}

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

/* Loading States */
.eps-loading {
    position: relative;
}

.eps-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.eps-fade-in {
    animation: slideInUp 0.5s ease-out;
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .eps-reports-container {
        background: #1a202c;
        color: #e2e8f0;
    }
    
    .eps-table-container {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .eps-table th {
        background: #374151;
        color: #e2e8f0;
    }
    
    .eps-table td {
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .eps-filter-container {
        background: #374151;
        border-color: #4a5568;
    }
}