/*
 * SOP Module - Startup Style Theme
 * Modern, clean design with gradient accents and smooth interactions
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Primary Colors - Modern Green Gradient Palette */
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --primary-color: #10b981;
    --primary-hover: #059669;
    --secondary-color: #14b8a6;

    /* Status Colors */
    --success-color: #10b981;
    --success-bg: #d1fae5;
    --warning-color: #f59e0b;
    --warning-bg: #fef3c7;
    --danger-color: #ef4444;
    --danger-bg: #fee2e2;
    --info-color: #3b82f6;
    --info-bg: #dbeafe;

    /* Neutral Colors */
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#ui-view-container {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   CARDS
   ============================================ */
.startup-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
    overflow: hidden;
}

.startup-card:hover {
    box-shadow: var(--shadow-lg);
}

.startup-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(to right, #f8fafc, #ffffff);
}

.startup-card-header h4,
.startup-card-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.startup-card-body {
    padding: 1.5rem;
}

.startup-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-color);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-startup {
    border-radius: var(--radius-md);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: all var(--transition-fast);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-startup:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.btn-startup-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.btn-startup-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(99, 102, 241, 0.4);
    color: white;
    text-decoration: none;
}

.btn-startup-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-startup-secondary:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.btn-startup-success {
    background: var(--success-color);
    color: white;
}

.btn-startup-success:hover {
    background: #059669;
    color: white;
    text-decoration: none;
}

.btn-startup-danger {
    background: var(--danger-color);
    color: white;
}

.btn-startup-danger:hover {
    background: #dc2626;
    color: white;
    text-decoration: none;
}

.btn-startup-warning {
    background: var(--warning-color);
    color: white;
}

.btn-startup-warning:hover {
    background: #d97706;
    color: white;
    text-decoration: none;
}

.btn-startup-info {
    background: var(--info-color);
    color: white;
}

.btn-startup-info:hover {
    background: #2563eb;
    color: white;
    text-decoration: none;
}

.btn-startup-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.1rem;
}

.btn-startup-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-startup-block {
    width: 100%;
}

/* Icon-only buttons */
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-icon-sm {
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 0.75rem;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.form-group-startup {
    margin-bottom: 1.25rem;
}

.form-group-startup label {
    display: block;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control-startup {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    background: white;
    color: var(--text-primary);
}

.form-control-startup:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control-startup::placeholder {
    color: var(--text-muted);
}

select.form-control-startup {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

textarea.form-control-startup {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox & Radio styling */
.form-check-startup {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.375rem 0;
}

.form-check-startup input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.form-check-startup input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-startup input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 11px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================
   TABLES
   ============================================ */
.table-startup-container {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.table-startup {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table-startup thead th {
    background: var(--bg-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.table-startup tbody tr {
    transition: background var(--transition-fast);
}

.table-startup tbody tr:hover {
    background: #f8fafc;
}

.table-startup tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
}

.table-startup tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   BADGES
   ============================================ */
.badge-startup {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-startup-success {
    background: var(--success-bg);
    color: #065f46;
}

.badge-startup-warning {
    background: var(--warning-bg);
    color: #92400e;
}

.badge-startup-danger {
    background: var(--danger-bg);
    color: #991b1b;
}

.badge-startup-info {
    background: var(--info-bg);
    color: #1e40af;
}

/* ============================================
   TABS
   ============================================ */
.tabs-startup {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border-color);
    padding: 0 1.5rem;
    background: var(--bg-color);
}

.tab-startup {
    padding: 0.875rem 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.tab-startup.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content-startup {
    padding: 1.5rem;
    background: var(--card-bg);
}

/* ============================================
   NAVIGATION & HEADER
   ============================================ */
.navbar-startup {
    background: var(--primary-gradient) !important;
    box-shadow: var(--shadow-md);
}

.navbar-startup .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.navbar-startup .nav-link:hover {
    color: white !important;
}

/* ============================================
   FILTER SECTION
   ============================================ */
.filter-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.filter-header {
    padding: 1rem 1.25rem;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition-fast);
}

.filter-header:hover {
    background: #f1f5f9;
}

.filter-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-body {
    padding: 1.25rem;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* ============================================
   LOADING & ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn var(--transition-normal) ease-out;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
    #ui-view-container {
        padding: 1rem;
    }

    .startup-card-body {
        padding: 1rem;
    }

    .table-startup thead {
        display: none;
    }

    .table-startup tbody td {
        display: block;
        padding: 0.75rem;
        border: none;
    }

    .table-startup tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        display: block;
        font-size: 0.75rem;
        text-transform: uppercase;
        margin-bottom: 0.25rem;
    }

    .table-startup tbody tr {
        display: block;
        border-bottom: 1px solid var(--border-color);
        padding: 0.75rem 0;
    }
}

/* ============================================
   HERO SECTION (Index Page)
   ============================================ */
.hero-section {
    text-align: center;
    padding: 2rem 1rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   FILE UPLOAD AREA
   ============================================ */
.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.02);
}

.file-upload-area i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.divider-gradient {
    border: none;
    height: 2px;
    background: var(--primary-gradient);
    margin: 1.5rem 0;
    border-radius: var(--radius-full);
}