/**
 * Custom CSS for Tender Tracking System
 */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
}

a {
    transition: all 0.3s ease;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
    border-radius: 4px;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-warning {
    background-color: #ffc107;
    color: #333;
}

.badge-success {
    background-color: #28a745;
}

.badge-info {
    background-color: #17a2b8;
}

.badge-secondary {
    background-color: #6c757d;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%);
}

/* Status Cards */
.stat-card {
    border-radius: 8px;
    padding: 25px;
    color: white;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.stat-card.total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card.completed {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card.urgent {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Alerts and Reminders */
.reminder-item {
    padding: 12px 15px;
    border-left: 4px solid #ffc107;
    background-color: #fffbea;
    margin-bottom: 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.reminder-item:hover {
    background-color: #fffef0;
    border-left-color: #ff9800;
}

.reminder-item.urgent {
    border-left-color: #dc3545;
    background-color: #fff5f5;
}

/* Form Styling */
.form-control,
.form-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Note Items */
.note-item {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fafafa;
    transition: all 0.2s ease;
}

.note-item:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Document Items */
.document-item {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
}

.document-item:hover {
    background-color: #f0f0f0;
    border-color: #667eea;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    margin-top: 50px;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .btn-sm {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    .btn-group {
        display: none;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    body {
        background-color: white;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.alert {
    animation: fadeIn 0.3s ease;
}

/* Loading State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Utility Classes */
.text-muted {
    color: #6c757d;
}

.border-start {
    border-left: 3px solid #667eea;
    padding-left: 12px;
}

.bg-light-purple {
    background-color: rgba(102, 126, 234, 0.1);
}
