/* Custom styles for AI Text Summarizer */

/* Minimal custom styles - relying on Bootstrap theme */
body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    padding: 1rem;
}

/* Smooth transitions */
.card {
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.btn {
    transition: all 0.3s ease;
}

/* Enhanced textarea */
#inputText {
    resize: vertical;
    min-height: 120px;
    border: 2px solid var(--bs-border-color);
    transition: border-color 0.3s ease;
}

#inputText:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Character counter styling */
#charCount {
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Summary results styling */
#summaryResult {
    background-color: var(--bs-light) !important;
    color: var(--bs-dark) !important;
    border-radius: 0.375rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Pricing cards */
.card.border-primary {
    border-width: 2px !important;
    position: relative;
}

.card.border-primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-info));
    border-radius: 0.5rem;
    z-index: -1;
}

/* Loading spinner */
#loadingSpinner {
    backdrop-filter: blur(3px);
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    padding: 2rem;
}

/* Modal enhancements */
.modal-content {
    border: none;
    border-radius: 0.5rem;
}

.modal-header {
    border-bottom: 1px solid var(--bs-border-color);
}

.modal-footer {
    border-top: 1px solid var(--bs-border-color);
}

/* Navigation enhancements */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-text .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

/* Toast notifications */
.toast-container {
    z-index: 1050;
}

.toast {
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* Animation for usage counter */
.badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.btn-close:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Success page styling */
.text-success {
    color: var(--bs-success) !important;
}

.text-warning {
    color: var(--bs-warning) !important;
}

/* Payment button styling */
.btn-warning {
    background-color: #ffdd57;
    border-color: #ffdd57;
    color: #333;
}

.btn-warning:hover {
    background-color: #ffcd3c;
    border-color: #ffcd3c;
    color: #333;
}
