/* ===================================
   Custom Modern Styles for StartupLens
   =================================== */

:root {
    --primary-color: #0e4bd0;
    --secondary-color: #00d4ff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-gray: #f8f9fa;
    --border-gray: #e9ecef;
}

/* Typography & Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: #1a1a1a;
    font-weight: 600;
}

/* Investment Cards */
.startup-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.startup-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.startup-card .card-body {
    position: relative;
}

.startup-card a {
    color: inherit;
    transition: color 0.2s;
}

.startup-card a:hover {
    color: var(--primary-color);
}

/* Badges and Tags */
.badge-stage {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
}

.valuation-text {
    font-weight: 700;
    color: var(--success-color);
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.industry-tag,
.default-tag,
.investor-tag {
    background-color: #f0f3f7;
    color: #495057;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0.25rem;
    display: inline-block;
    font-weight: 500;
    border: 1px solid #e0e6f0;
    transition: all 0.2s ease;
}

.industry-tag:hover,
.default-tag:hover,
.investor-tag:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Table Styling */
.table-modern {
    border-collapse: collapse;
    margin-bottom: 0;
}

.table-modern thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.table-modern thead th {
    border: none;
    background: inherit;
    vertical-align: middle;
    padding: 1rem;
}

.table-modern tbody tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #e9ecef;
}

.table-modern tbody tr:hover {
    background-color: #f8f9fa;
}

.table-modern tbody td {
    vertical-align: middle;
    padding: 1rem;
    border: none;
}

/* Alert Styles */
.alert-modern {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert-success,
.alert-danger,
.alert-warning,
.alert-info {
    border-radius: 12px;
}

/* Form Styling */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(14, 75, 208, 0.25);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    padding: 0.625rem 1.25rem;
}

.btn-primary {
    background: linear-gradient(135deg, #0e4bd0 0%, #0a3aa8 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a3aa8 0%, #082a7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 75, 208, 0.3);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Card Styles */
.card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Hero Sections */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Icon Circles */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Status Indicators */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge i {
    font-size: 0.5rem;
}

/* List Group Styling */
.list-group-item {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.list-group-item-action:hover {
    background-color: rgba(14, 75, 208, 0.05);
    color: inherit;
}

/* Modal Styling */
.modal-content {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.modal-header .btn-close {
    filter: invert(0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1rem;
    }

    .startup-card {
        margin-bottom: 1rem;
    }

    .btn-group {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .table-modern {
        font-size: 0.9rem;
    }

    .table-modern th,
    .table-modern td {
        padding: 0.75rem 0.5rem;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.slide-in-up {
    animation: slideInUp 0.5s ease-out;
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shadow-sm-hover {
    transition: box-shadow 0.2s ease;
}

.shadow-sm-hover:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rounded-lg {
    border-radius: 12px;
}

.gradient-primary {
    background: linear-gradient(135deg, #0e4bd0 0%, #0a3aa8 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.gradient-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

/* Footer */
footer {
    border-top: 2px solid #e9ecef;
    background-color: #f8f9fa;
}

footer a {
    color: #6c757d;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--primary-color);
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    .alert {
        display: none;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

