/* Contract Management Styles */
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.table-actions {
    min-width: 140px;
}

.status-badge {
    font-size: 0.75em;
}

.search-box {
    max-width: 300px;
}

.filter-box {
    max-width: 200px;
}

.stat-update {
    animation: pulse 0.5s ease-in-out, glow 1s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { 
        text-shadow: 0 0 5px rgba(33, 150, 243, 0.5);
        color: #1976d2;
    }
    50% { 
        text-shadow: 0 0 20px rgba(33, 150, 243, 0.8);
        color: #1565c0;
    }
    100% { 
        text-shadow: 0 0 5px rgba(33, 150, 243, 0.5);
        color: inherit;
    }
}

.contract-expiring {
    border-left: 4px solid #ffc107;
}

.contract-expired {
    border-left: 4px solid #dc3545;
}

.contract-active {
    border-left: 4px solid #198754;
}

.days-badge {
    font-size: 0.7em;
}

/* Contract Details Styles */
.contract-details-table td {
    padding: 0.25rem 0.5rem;
    border: none;
}

.contract-details-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.modal-lg {
    max-width: 800px;
}

.invalid-feedback {
    display: block;
}

.contract-history {
    max-height: 300px;
    overflow-y: auto;
}

.terms-conditions {
    white-space: pre-wrap;
    font-family: inherit;
    line-height: 1.5;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status Indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-active { background-color: #198754; }
.status-expired { background-color: #dc3545; }
.status-terminated { background-color: #6c757d; }
.status-expiring { background-color: #ffc107; }

/* Responsive Tables */
@media (max-width: 768px) {
    .table-responsive table {
        font-size: 0.875rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .btn, .pagination, .card-header .btn {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}