/*! 
 * Biz Doubt Fix - Business Confidence Booster - v1.0.0
 * https://bizdoubtfix.example.com/
 * 
 * Copyright (c) 2025 BizDoubtFix
 * All Rights Reserved
 * 
 * This code is protected by copyright and international law.
 * Unauthorized copying, modification, or distribution of this software
 * is strictly prohibited and may result in severe civil and criminal penalties.
 */

/* Custom Styles for Biz Doubt Fix */

/* Import custom font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHJlY3QgaWQ9InBhdHRlcm4tYmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InJnYmEoMjQ2LCAyNDYsIDI1MSwgMSkiPjwvcmVjdD48Y2lyY2xlIGZpbGw9InJnYmEoMjM4LCAyNDIsIDI1NSwgMC43KSIgY3g9IjIwIiBjeT0iMjAiIHI9IjEiPjwvY2lyY2xlPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgaGVpZ2h0PSIxMDAlIiB3aWR0aD0iMTAwJSI+PC9yZWN0Pjwvc3ZnPg==');
    background-attachment: fixed;
}

/* Glass morphism effects - enhanced */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 4px 24px -1px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* Tab navigation - refined */
.tab-btn {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    z-index: 1;
}

@media (min-width: 768px) {
    .tab-btn {
        padding: 0.75rem 1.5rem;
    }
}

.tab-btn:before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.5rem;
    padding: 2px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.5), rgba(109, 40, 217, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-btn:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -1px;
    left: 50%;
    background: linear-gradient(90deg, #8B5CF6 0%, #6D28D9 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(109, 40, 217, 0.3);
}

.tab-btn.active {
    color: #6D28D9;
    background-color: rgba(137, 98, 248, 0.08);
}

.tab-btn.active:before {
    opacity: 1;
}

.tab-btn.active:after {
    width: 70%;
}

.tab-btn:hover {
    background-color: rgba(137, 98, 248, 0.05);
}

.tab-btn:hover:after {
    width: 40%;
}

/* Card hover effects - enhanced */
.feature-card, .achievement-card {
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 4px 12px -2px rgba(0, 0, 0, 0.08),
        0 2px 4px -1px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    overflow: hidden;
    position: relative;
}

.feature-card:before, .achievement-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C4B5FD 0%, #8B5CF6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover:before, .achievement-card:hover:not(.locked):before {
    opacity: 1;
}

.feature-card:hover, .achievement-card:hover:not(.locked) {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 28px -5px rgba(0, 0, 0, 0.15), 
        0 8px 16px -8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.85);
}

/* Specific styles for entry cards */
.entry-card {
    border-left: 4px solid #8B5CF6;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 0.75rem;
    box-shadow: 
        0 4px 16px -2px rgba(0, 0, 0, 0.05), 
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.entry-card:hover {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 8px 24px -2px rgba(0, 0, 0, 0.08), 
        0 4px 8px -2px rgba(0, 0, 0, 0.05);
}

/* Achievement card styles - premium */
.achievement-card.unlocked {
    background: linear-gradient(145deg, #f5f3ff, #ede9fe);
    border: 1px solid rgba(196, 181, 253, 0.5);
    position: relative;
    overflow: hidden;
}

.achievement-card.unlocked:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0)
    );
    transform: rotate(30deg);
    animation: shine 8s linear infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(25deg); }
    20%, 100% { transform: translateX(100%) rotate(25deg); }
}

.achievement-card.locked {
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: linear-gradient(145deg, #f6f7f9, #edf2f7);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.achievement-card.locked:hover {
    opacity: 0.8;
    transform: none;
}

/* Animation for delete confirmation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Custom input styling */
input[type="range"] {
    height: 5px;
    border-radius: 5px;
    appearance: none;
    background: linear-gradient(to right, #6D28D9 0%, #6D28D9 50%, #E5E7EB 50%, #E5E7EB 100%);
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6D28D9;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Enhanced button styles */
.btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: white;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 
        0 4px 12px rgba(109, 40, 217, 0.2),
        0 2px 4px rgba(109, 40, 217, 0.1);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    transform: translateY(0);
}

.btn-primary:hover {
    box-shadow: 
        0 6px 20px rgba(109, 40, 217, 0.25),
        0 4px 8px rgba(109, 40, 217, 0.15);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 
        0 2px 8px rgba(109, 40, 217, 0.2),
        0 1px 3px rgba(109, 40, 217, 0.1);
}

.btn-primary:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0)
    );
    transform: rotate(25deg);
    animation: shine 6s linear infinite;
}

/* Button pulse animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(109, 40, 217, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(109, 40, 217, 0); }
    100% { box-shadow: 0 0 0 0 rgba(109, 40, 217, 0); }
}

.pulse-button {
    animation: pulse 1.5s infinite;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
}

/* Empty state styling - enhanced */
#empty-state {
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 2rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(249, 250, 251, 0.7));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 
        0 8px 32px rgba(31, 41, 55, 0.05),
        0 4px 8px rgba(31, 41, 55, 0.03);
}

#empty-state i {
    background: linear-gradient(135deg, #A78BFA, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#empty-state:hover i {
    transform: scale(1.15) rotate(5deg);
}

/* Custom styles for form inputs */
input[type="text"], 
input[type="date"], 
textarea, 
select {
    border-radius: 0.75rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

input[type="text"]:focus, 
input[type="date"]:focus, 
textarea:focus, 
select:focus {
    background-color: white;
    border-color: #A78BFA;
    box-shadow: 
        0 0 0 3px rgba(139, 92, 246, 0.15),
        inset 0 2px 4px rgba(0, 0, 0, 0);
    outline: none;
}

/* Custom notification styling */
.notification {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    border-left: 4px solid #8B5CF6;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.1),
        0 5px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}