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

:root {
    --transition-duration: 0.2s;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: #2d3748;
}

.drag-drop-area {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: 2px solid transparent;
    background-color: #f3f4f6;
}

    .drag-drop-area:hover, .drag-drop-area.active {
        border-color: #7031ff;
        background-color: #f5f3ff;
    }

    .drag-drop-area.inactive-drag-area {
        cursor: default;
        pointer-events: none;
    }

.drag-drop-area-error {
    border-color: #ef4444;
    background-color: #fecaca;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

    .drag-drop-area-error:hover {
        transform: none;
    }

.truncated-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-viewer-container {
    width: 100%;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.page-container {
    position: relative;
    width: 100%;
}

.pdf-canvas {
    width: 100%;
    height: auto;
    display: block;
}

.highlight-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: multiply;
}

#imageContent {
    position: relative;
}

    #imageContent img {
        display: block;
        width: 100%;
        height: auto;
    }

.navigation-controls-btn {
    background-color: white;
    color: #7031ff;
    border-radius: 9999px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

    .navigation-controls-btn:hover:not(:disabled) {
        background-color: #f3f4f6;
    }

    .navigation-controls-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

.custom-checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox-visual {
    height: 1.5rem;
    width: 1.5rem;
    background-color: #e9e2ff;
    border-radius: 0.175rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.custom-checkbox-wrapper input:checked ~ .custom-checkbox-visual {
    background-color: #7031ff;
}

.check-icon {
    display: none;
    color: white;
}

.custom-checkbox-wrapper input:checked ~ .custom-checkbox-visual .check-icon {
    display: block;
}

.custom-checkbox-wrapper span {
    user-select: none;
}

.angled-split {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, transparent 40%, #f7fafc 40%);
    z-index: -1;
}

.angled-split-gradient {
    background: linear-gradient(135deg, #7031ff 10%, #c084fc 80%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.gradient-background {
    background: linear-gradient(135deg, #7031ff, #c084fc);
    color: white;
}

.gradient-background-text {
    background: linear-gradient(135deg, #7031ff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-background-text-error {
    background: linear-gradient(135deg, #ef4444, #f87171);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upload-button {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .upload-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    }

.page-section {
    transition: opacity var(--transition-duration) ease-in-out, transform var(--transition-duration) ease-in-out;
}

.is-exiting {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -4px;
        left: 0;
        background: linear-gradient(135deg, #7031ff, #c084fc);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after, .nav-link.active::after {
        width: 100%;
    }

.circle-border circle {
    stroke-dasharray: 101;
    stroke-dashoffset: 101;
    transition: stroke-dashoffset 0.3s linear;
}

.user-icon:hover .circle-border circle {
    stroke-dashoffset: 0;
}

.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2d3748;
    color: white;
    padding: 12px 24px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-size: 0.875rem;
    font-weight: 500;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s, bottom 0.3s;
}

    .toast-message.toast-show {
        visibility: visible;
        opacity: 1;
        bottom: 50px;
    }

    .toast-message.toast-error {
        background-color: #ef4444;
    }

.mobile-nav-link {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

#mobile-menu.is-open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.is-open > a:nth-of-type(1) {
    transition-delay: 0.1s;
}

#mobile-menu.is-open nav > a:nth-child(1) {
    transition-delay: 0.15s;
}

#mobile-menu.is-open nav > a:nth-child(2) {
    transition-delay: 0.2s;
}

#mobile-menu.is-open nav > a:nth-child(3) {
    transition-delay: 0.25s;
}

#mobile-menu.is-open nav > div:nth-child(4) {
    transition-delay: 0.3s;
}

#mobile-menu.is-open nav > a:nth-child(5) {
    transition-delay: 0.35s;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .angled-split {
        background-image: linear-gradient(135deg, transparent 30%, #f7fafc 30%);
    }
}

/* Pricing Styles */
.package-option {
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
    background-color: #f3f4f6; /* bg-gray-100 */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 1rem; /* p-4 */
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    user-select: none;
}

    .package-option:hover {
        border-color: #7031ff;
        background-color: #f5f3ff; /* bg-purple-50 */
    }

    .package-option.selected {
        border-color: #7031ff;
        background-color: #f5f3ff;
        box-shadow: 0 8px 20px rgba(112, 49, 255, 0.2);
    }

/* Login Styles */
.form-container {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.input-error {
    border-color: #ef4444 !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    height: 1rem;
}

/* User Icon Active State */
.user-icon:hover .circle-border circle, .user-icon.active .circle-border circle {
    stroke-dashoffset: 0;
}


/* Profile Styles */
.profile-action-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid transparent;
}

    .profile-action-button:hover {
        background-color: #e5e7eb;
    }

    .profile-action-button.danger {
        background-color: transparent;
        color: #dc2626;
        border-color: #fca5a5;
    }

        .profile-action-button.danger:hover {
            background-color: #fee2e2;
            color: #b91c1c;
            border-color: #ef4444;
        }

.profile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s ease;
}

    .profile-nav-link:hover {
        background-color: #f3f4f6;
        color: #1f2937;
    }

    .profile-nav-link.active {
        background-color: #f3f4f6;
        font-weight: 600;
        color: #1f2937;
    }

        .profile-nav-link.active i {
            color: transparent;
            background: linear-gradient(135deg, #7031ff, #c084fc);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

.profile-content-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    .profile-content-section.active {
        display: block;
        opacity: 1;
    }

.progress-circle {
    transform: rotate(-90deg);
}

.progress-circle-bar {
    transition: stroke-dashoffset 1s ease-out;
}

.password-strength-meter {
    height: 4px;
    border-radius: 2px;
    transition: width 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
