/* AI Tools Specific Styles */
body {
    background: linear-gradient(135deg, #FDFBF8 0%, #F8F6F3 25%, #F5F3F0 50%, #F0EDE8 100%);
    color: #2D3748;
    min-height: 100vh;
}

/* Enhanced Tool Cards */
.tool-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    transform: translateY(-4px);
}

.tool-card.active {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tool-card.active::before {
    transform: scaleX(1);
}

/* Input Status Indicator */
#input-status {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

#status-indicator.ready {
    background: #10B981;
    animation: pulse 2s infinite;
}

#status-indicator.processing {
    background: #F59E0B;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Modern Tab Styles */
.tabs-container {
    display: flex;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-container::-webkit-scrollbar {
    display: none;
}

.tab-button {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: #64748B;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.tab-button:hover {
    background: rgba(30, 64, 175, 0.08);
    color: #1E40AF;
    transform: translateY(-1px);
}

.tab-button.active {
    background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    transform: translateY(-2px);
}

.tab-button.active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, #1E40AF, #1E3A8A);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Modern Tab Content */
.tab-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.hidden {
    display: none;
}

.tab-inner-content {
    padding: 32px;
}

.tab-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Input Styles */
.modern-input-group {
    position: relative;
    margin-bottom: 24px;
}

.modern-input,
.modern-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    outline: none;
}

.modern-input:focus,
.modern-textarea:focus {
    border-color: #1E40AF;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
    background: white;
}

.modern-label {
    position: absolute;
    left: 20px;
    top: 16px;
    font-size: 16px;
    color: #64748B;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 8px;
}

.modern-input:focus+.modern-label,
.modern-input:not(:placeholder-shown)+.modern-label,
.modern-textarea:focus+.modern-label,
.modern-textarea:not(:placeholder-shown)+.modern-label {
    top: -8px;
    font-size: 12px;
    color: #1E40AF;
    font-weight: 600;
}

/* Modern Button Styles */
.modern-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modern-btn-primary {
    background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
}

.modern-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.4);
}

.modern-btn-primary:active {
    transform: translateY(0);
}

.modern-btn-secondary {
    background: linear-gradient(135deg, #4A5568 0%, #2D3748 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(74, 85, 104, 0.3);
}

.modern-btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 85, 104, 0.4);
}

.modern-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    background: #9CA3AF !important;
    box-shadow: none !important;
}

.modern-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Modern Output Area */
.modern-output {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    min-height: 120px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2D3748;
    white-space: pre-wrap;
    position: relative;
    overflow: hidden;
}

.modern-output::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E40AF, #1E3A8A);
}

.modern-output.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-style: italic;
}

/* Enhanced Salary Output Container */
.salary-output-container {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    min-height: 200px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #374151;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.salary-output-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fb923c);
}

.salary-output-container.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-style: italic;
}

.salary-output-container .content-area {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

.salary-output-container .empty-state {
    text-align: center;
    color: #6b7280;
}

/* Main Container */
.main-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.main-header {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(30, 58, 138, 0.05) 100%);
    padding: 32px;
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
}

/* Copy Button Animation */
.copy-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tab-button {
        min-width: 120px;
        font-size: 13px;
        padding: 10px 12px;
    }

    .tab-inner-content {
        padding: 24px 20px;
    }

    .modern-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .salary-output-container {
        padding: 20px;
        margin: 20px 0;
    }
}