/* Modern & Clean Salary Manager with Colorful Actions */
.vet-ngo-salary-manager {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.vet-ngo-salary-manager h2 {
    font-size: 30px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 12px;
}

.vet-ngo-salary-manager h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.salary-form-container,
.salary-list-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.salary-form-container:hover,
.salary-list-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.salary-form-container h3,
.salary-list-container h3 {
    margin-top: 0;
    margin-bottom: 24px;
    color: #2d3748;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.salary-form-container h3::before {
    content: '💰';
    font-size: 22px;
}

.salary-list-container h3::before {
    content: '📊';
    font-size: 22px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.form-group select,
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: #f9fafb;
    color: #1f2937;
}

.form-group select:focus,
.form-group input[type="number"]:focus,
.form-group input[type="date"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.form-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Colorful Modern Buttons */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-edit,
.btn-delete {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Primary Button - Purple/Blue Gradient */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Edit Button - Blue */
.btn-edit,
.btn-secondary {
    background: #3b82f6;
    color: white;
    padding: 8px 16px;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.btn-edit:hover,
.btn-secondary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.4);
}

.btn-edit:active,
.btn-secondary:active {
    transform: translateY(0);
}

/* Delete Button - Red */
.btn-delete,
.btn-danger {
    background: #ef4444;
    color: white;
    padding: 8px 16px;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.btn-delete:hover,
.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.4);
}

.btn-delete:active,
.btn-danger:active {
    transform: translateY(0);
}

/* Action buttons container in table */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-container {
    margin-bottom: 20px;
}

.filter-container input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 11px 14px 11px 40px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #f9fafb url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%239ca3af" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.35-4.35"></path></svg>') no-repeat 12px center;
}

.filter-container input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Table wrapper for horizontal scroll on mobile */
.salary-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 15px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.salary-table {
    width: 100%;
    min-width: 700px;
    border-collapse: separate;
    border-spacing: 0;
}

.salary-table th,
.salary-table td {
    padding: 14px 16px;
    text-align: left;
}

.salary-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-weight: 500;
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: none;
}

.salary-table tbody tr {
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.salary-table tbody tr:hover {
    background: #f9fafb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.salary-table tbody tr:last-child {
    border-bottom: none;
}

.salary-table td {
    color: #374151;
    font-size: 14px;
}

.salary-table .loading,
.salary-table .no-data,
.salary-table .error {
    text-align: center;
    color: #9ca3af;
    padding: 32px 20px;
    font-size: 15px;
}

.salary-table .error {
    color: #ef4444;
}

.message {
    padding: 14px 18px;
    border-radius: 8px;
    margin: 16px 0;
    font-weight: 400;
    font-size: 14px;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message::before {
    font-size: 18px;
}

.message.success {
    background: #f0fdf4;
    color: #166534;
    border-color: #86efac;
}

.message.success::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    font-weight: 600;
}

.message.error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.message.error::before {
    content: '✕';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vet-ngo-salary-manager {
        padding: 16px;
        margin: 16px auto;
    }

    .vet-ngo-salary-manager h2 {
        font-size: 24px;
    }

    .salary-form-container,
    .salary-list-container {
        padding: 20px;
        border-radius: 10px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger {
        width: 100%;
        justify-content: center;
    }

    .filter-container input[type="text"] {
        max-width: 100%;
    }
    
    .salary-table-wrapper {
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .action-buttons {
        flex-direction: column;
        gap: 6px;
    }

    .btn-edit,
    .btn-delete {
        width: 100%;
        justify-content: center;
    }
}

/* Smooth scrollbar for webkit browsers */
.salary-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.salary-table-wrapper::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.salary-table-wrapper::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.salary-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}