/* Lawyer AI Defense Strategy Engine - Custom Styles */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --border-color: #dee2e6;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

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

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    overflow: hidden;
}

.hero-section .card {
    background: transparent;
    border: none;
}

.hero-section .card-body {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-header {
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Statistics Cards */
.stat-card {
    border-left: 4px solid var(--secondary-color);
}

.stat-card:nth-child(2) {
    border-left-color: var(--success-color);
}

.stat-card:nth-child(3) {
    border-left-color: var(--warning-color);
}

.stat-card:nth-child(4) {
    border-left-color: var(--danger-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.stat-label {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

/* Feature Cards */
.feature-icon {
    transition: transform 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1);
}

/* Step Numbers */
.step-number {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto;
}

/* Badges and Tags */
.badge {
    font-size: 0.8rem;
    padding: 0.5em 0.8em;
    border-radius: 20px;
}

.keyword-tags .badge {
    margin: 0.2rem;
    transition: transform 0.2s ease;
}

.keyword-tags .badge:hover {
    transform: scale(1.05);
}

.strategy-tags .badge {
    cursor: pointer;
    transition: all 0.3s ease;
}

.strategy-tags .badge:hover {
    background-color: var(--secondary-color) !important;
    color: white !important;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--secondary-color), #5dade2);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #2980b9, var(--secondary-color));
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Tables */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: var(--light-gray);
    border: none;
    font-weight: 600;
    color: var(--primary-color);
}

.table td {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* Progress Bars */
.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 5px;
    transition: width 0.6s ease;
}

/* Document Preview */
.document-preview {
    background-color: #f8f9fa;
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Strategy Items */
.strategy-item {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.strategy-item:hover {
    background-color: #e9ecef;
}

/* Confidence Score */
.confidence-score {
    padding: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Analysis Form */
#analysisForm .form-control {
    font-size: 1rem;
}

#analysisForm textarea {
    resize: vertical;
    min-height: 200px;
}

/* File Upload */
.form-control[type="file"] {
    padding: 0.5rem;
}

.form-control[type="file"]::-webkit-file-upload-button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-right: 1rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.border-primary { border-color: var(--primary-color) !important; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Pricing Styles */
.pricing-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    border: 2px solid var(--secondary-color);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, var(--secondary-color), #5dade2);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.price {
    margin: 1rem 0;
}

.price .currency {
    font-size: 1.2rem;
    vertical-align: top;
    margin-top: 0.5rem;
}

.price .amount {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
}

.price .period {
    font-size: 1rem;
    color: #6c757d;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    width: 20px;
    margin-right: 10px;
}

.pricing-toggle {
    background: #f8f9fa;
    border-radius: 50px;
    padding: 10px 20px;
    display: inline-block;
}

.faq-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.trust-indicators {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.trust-indicators .col-md-3 {
    margin-bottom: 1rem;
}

/* Subscription Status Styles */
.subscription-status {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.usage-progress {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.usage-bar {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    height: 8px;
    border-radius: 10px;
    transition: width 0.6s ease;
}

.plan-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Account Management Styles */
.account-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.billing-history .table {
    margin-bottom: 0;
}

.invoice-link {
    color: var(--secondary-color);
    text-decoration: none;
}

.invoice-link:hover {
    text-decoration: underline;
}

/* Payment Method Styles */
.payment-method {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.payment-method.active {
    border-color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.05);
}

.card-brand {
    width: 40px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    margin-right: 10px;
}

/* Responsive Pricing */
@media (max-width: 768px) {
    .pricing-card.popular {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .price .amount {
        font-size: 2.5rem;
    }
    
    .trust-indicators .row {
        text-align: center;
    }
    
    .subscription-status {
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .btn {
        display: none !important;
    }
}
