/* AI Grammar & Paraphraser Tool Styles */

/* Grammar Results */
#grammarResults .border-start {
    padding-left: 1rem !important;
    margin-bottom: 1rem;
}

#grammarResults .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Issue cards with smooth animations */
.border-start {
    transition: all 0.3s ease;
}

.border-start:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transform: translateX(5px);
}

[data-bs-theme="dark"] .border-start:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Grammar Score Styling */
#grammarScore {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #198754;
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-info {
    border-left-color: #0dcaf0;
}

.alert-danger {
    border-left-color: #dc3545;
}

/* Card styling */
.card {
    border-radius: 10px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .card {
    background-color: #212529;
    border-color: #3d4349;
}

/* Prevent text selection on labels */
.form-label {
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.form-text {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

small.text-muted {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

/* Spinner enhancement */
.spinner-border {
    border-width: 3px;
}

/* Loading Status with Progress */
#loadingStatus {
    position: relative;
    overflow: hidden;
}

#loadingStatus::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: loading-slide 1.5s infinite;
}

@keyframes loading-slide {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Icon colors */
.fsvg {
    transition: filter 0.2s ease;
}

/* Button hover effects - prevent filter on white icons */
.btn .filter-white {
    filter: brightness(0) invert(1);
}

.btn:hover .filter-white {
    filter: brightness(0) invert(1);
}

[data-bs-theme="dark"] .btn .filter-white {
    filter: brightness(0) invert(1);
}

[data-bs-theme="dark"] .btn:hover .filter-white {
    filter: brightness(0) invert(1);
}

/* Issue type badges */
.badge {
    font-weight: 500;
    letter-spacing: 0.3px;
}

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

.border-start {
    animation: fadeIn 0.4s ease;
}

.border-start:nth-child(2) {
    animation-delay: 0.05s;
}

.border-start:nth-child(3) {
    animation-delay: 0.1s;
}

.border-start:nth-child(4) {
    animation-delay: 0.15s;
}

.border-start:nth-child(5) {
    animation-delay: 0.2s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .row > [class*='col-'] {
        padding-left: 0;
        padding-right: 0;
    }
    
    #grammarResults .border-start {
        padding-left: 0.75rem !important;
    }
}

@media (max-width: 576px) {
    .badge {
        font-size: 0.65rem;
        padding: 0.25em 0.5em;
    }
    
    #grammarScore {
        font-size: 1rem;
    }
}