/* EpicScope - Custom Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --warning-orange-color: #fd7e14;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.15s ease-in-out;
}

/* Mobile First Responsive Design */
@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .col, .col-12, .col-sm-6, .col-md-3, .col-md-4, .col-md-6, .col-lg-3, .col-lg-4 {
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 1rem;
    }
}

/* Custom orange warning badge for WARNING status */
.bg-warning-orange {
    background-color: var(--warning-orange-color) !important;
    color: white !important;
}

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

/* Mobile Typography */
@media (max-width: 768px) {
    body {
        font-size: 0.85rem;
    }
    
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.1rem !important; }
    h5 { font-size: 1rem !important; }
    
    .display-1 { font-size: 3rem !important; }
    .display-4 { font-size: 2rem !important; }
    .display-5 { font-size: 1.75rem !important; }
    
    .lead {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 0.375rem;
        margin: 0.125rem 0;
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(255,255,255,0.1);
        transform: none !important;
        color: #4ECDC4 !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* Mobile Form Improvements */
@media (max-width: 768px) {
    .form-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        min-height: auto;
        margin-bottom: 1rem;
    }
    
    .form-group .form-label {
        min-height: auto;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    .form-control, .form-select {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
        min-height: 2.5rem;
        height: 2.5rem;
    }
    
    .btn {
        min-height: 2.5rem;
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
    
    .btn-lg {
        min-height: 3rem;
        font-size: 0.95rem;
        padding: 0.8rem 1.25rem;
    }
    
    .form-field-with-button .btn {
        min-width: 40px;
        padding: 0.6rem 0.8rem;
    }
}

/* Mobile Cards and Metrics */
@media (max-width: 768px) {
    .metric-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .metric-value {
        font-size: 1.4rem;
    }
    
    .metric-label {
        font-size: 0.65rem;
    }
    
    .dashboard-card {
        margin-bottom: 1rem;
    }
    
    .quick-metric {
        padding: 0.5rem;
    }
    
    .quick-metric .metric-value {
        font-size: 0.9rem;
    }
    
    .quick-metric .metric-label {
        font-size: 0.6rem;
    }
}

/* Mobile Hero Section */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 !important;
    }
    
    .hero-section .container {
        text-align: center;
    }
    
    .hero-section .btn {
        margin: 0.25rem;
        width: 100%;
        max-width: 280px;
    }
    
    .hero-section .btn-lg {
        font-size: 0.95rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Mobile Table Responsiveness */
@media (max-width: 768px) {
    .table-responsive {
        border: none;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        vertical-align: middle;
    }
    
    .table .btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        min-height: auto;
    }
}

/* Mobile Dashboard Layout */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 0.5rem;
    }
    
    .timeline-overview .row {
        margin: 0;
    }
    
    .timeline-overview .col-md-2,
    .timeline-overview .col-md-4 {
        padding: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-card {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .timeline-card .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
}

/* Mobile Chart Responsiveness */
@media (max-width: 768px) {
    .chart-container {
        height: 250px !important;
        margin: 0.5rem 0;
    }
    
    .chart-row .col-md-6,
    .chart-row .col-md-12 {
        margin-bottom: 1rem;
    }
    
    .chart-card {
        padding: 0.75rem;
    }
    
    .chart-card .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    canvas {
        max-height: 200px !important;
    }
}

/* Mobile Modal Improvements */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: 0.5rem;
    }
    
    .modal-header {
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    .modal-footer .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

/* Mobile Mood Ring Responsiveness */
@media (max-width: 768px) {
    .mood-ring-container {
        width: 120px;
        height: 120px;
        margin: 0.5rem auto;
    }
    
    .mood-ring {
        width: 110px;
        height: 110px;
    }
    
    .mood-ring-value {
        font-size: 1.25rem;
    }
    
    .mood-ring-label {
        font-size: 0.65rem;
    }
    
    .mood-legend {
        font-size: 0.6rem;
        padding: 2px 4px;
        margin: 1px;
    }
}

@media (max-width: 576px) {
    .mood-ring-container {
        width: 100px;
        height: 100px;
    }
    
    .mood-ring {
        width: 90px;
        height: 90px;
    }
    
    .mood-ring-value {
        font-size: 1rem;
    }
    
    .mood-ring-label {
        font-size: 0.6rem;
    }
}

/* Mobile Kanban Board */
@media (max-width: 768px) {
    .kanban-column {
        min-width: 280px;
        margin-bottom: 1rem;
    }
    
    .kanban-card {
        margin-bottom: 0.75rem;
        font-size: 0.85rem;
    }
    
    .kanban-header {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }
    
    .epic-card .card-body {
        padding: 0.75rem;
    }
    
    .epic-metrics {
        font-size: 0.7rem;
    }
}

/* Mobile Gantt Chart */
@media (max-width: 768px) {
    .gantt-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .gantt-header {
        font-size: 0.7rem;
        padding: 0.25rem;
    }
    
    .gantt-bar {
        min-height: 20px;
        font-size: 0.65rem;
    }
    
    .gantt-milestone {
        width: 8px;
        height: 8px;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    footer {
        text-align: center !important;
        padding: 2rem 0 !important;
    }
    
    footer .row {
        text-align: center;
    }
    
    footer .col-md-6 {
        margin-bottom: 1rem;
    }
    
    footer h5 {
        font-size: 1.1rem;
    }
    
    footer p {
        font-size: 0.85rem;
    }
}

/* Mobile Utility Classes */
@media (max-width: 576px) {
    .mobile-hide {
        display: none !important;
    }
    
    .mobile-show {
        display: block !important;
    }
    
    .mobile-text-center {
        text-align: center !important;
    }
    
    .mobile-mb-3 {
        margin-bottom: 1rem !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
}

/* Mobile Dashboard Action Buttons */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .btn-group .btn {
        width: 100% !important;
        justify-content: center !important;
        margin: 0 !important;
        border-radius: 0.375rem !important;
    }
    
    .btn-group .dropdown-toggle {
        width: 100% !important;
    }
    
    .btn-group .dropdown-menu {
        width: 100% !important;
        position: static !important;
        float: none !important;
        margin-top: 0.5rem !important;
    }
    
    .dashboard-actions {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .dashboard-actions .btn {
        min-width: 120px;
        margin: 0.25rem;
    }
}

@media (max-width: 480px) {
    .btn-group .btn {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    .btn-group .btn i {
        margin-right: 0.25rem !important;
    }
}

/* Dropdown Menu Z-Index Fix */
.dropdown-menu {
    z-index: 1050 !important;
    position: absolute !important;
}

/* Ensure dropdown menus appear above cards and other content */
.btn-group .dropdown-menu,
.dropdown-toggle + .dropdown-menu,
.nav-item .dropdown-menu {
    z-index: 1050 !important;
}

/* Epic Card Mobile Dropdown Fixes */
.epic-card .dropdown {
    position: relative;
}

.epic-card .epic-dropdown-menu {
    position: fixed !important;
    z-index: 2147483647 !important;
    min-width: 220px !important;
    margin-top: 0.25rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5) !important;
    border: 2px solid #007bff !important;
    border-radius: 0.5rem !important;
    transform: none !important;
    will-change: auto !important;
    display: none !important;
    background: #ffffff !important;
    color: #212529 !important;
    font-family: inherit !important;
    font-size: 0.9rem !important;
}

.epic-card .epic-dropdown-menu.show {
    display: block !important;
}

.epic-card .epic-menu-toggle {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    padding: 0.375rem;
    border-radius: 0.25rem;
    transition: background-color 0.15s ease-in-out;
}

.epic-card .epic-menu-toggle:hover,
.epic-card .epic-menu-toggle:focus {
    background-color: rgba(0, 0, 0, 0.1);
    outline: none;
}

/* Improve touch targets for mobile */
.epic-card .dropdown-item {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    touch-action: manipulation !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    color: #212529 !important;
    text-decoration: none !important;
    font-family: inherit !important;
}

.epic-card .dropdown-item:hover,
.epic-card .dropdown-item:focus {
    background-color: #007bff !important;
    color: white !important;
}

.epic-card .dropdown-item:active {
    background-color: #0056b3 !important;
    color: white !important;
}

.epic-card .dropdown-item button {
    color: inherit !important;
    background: transparent !important;
    border: none !important;
    font-family: inherit !important;
    font-size: inherit !important;
}

/* Prevent dropdown from being cut off */
.epic-card {
    overflow: visible;
    position: relative;
}

.kanban-column {
    overflow: visible;
    position: relative;
    z-index: 1;
}

/* When dropdown is open, increase z-index */
.epic-card:has(.dropdown-menu.show) {
    z-index: 999998 !important;
    position: relative !important;
}

.epic-card .dropdown-menu.show {
    z-index: 999999 !important;
}

/* Ensure Epic card dropdowns are above everything */
.epic-card .dropdown {
    position: relative !important;
    z-index: 999997 !important;
}

/* Mobile specific improvements */
@media (max-width: 768px) {
    .epic-card .epic-menu-toggle {
        padding: 0.5rem;
        min-width: 2.5rem;
        min-height: 2.5rem;
    }
    
    .epic-card .dropdown-item {
        padding: 1rem;
        font-size: 1rem;
        min-height: 3rem;
    }
    
    .epic-card .epic-dropdown-menu {
        min-width: 220px;
        font-size: 1rem;
    }
}

/* Fix for mobile dropdowns that might be set to position: static */
@media (max-width: 768px) {
    .btn-group .dropdown-menu {
        position: absolute !important;
        z-index: 1050 !important;
        width: auto !important;
        min-width: 160px !important;
    }
}

/* Touch-friendly interactive elements */
@media (hover: none) and (pointer: coarse) {
    .btn, .card, .nav-link {
        transition: none;
    }
    
    .clickable-card:hover {
        transform: none;
        box-shadow: var(--box-shadow);
    }
    
    .metric-card:hover {
        transform: none;
        box-shadow: var(--box-shadow);
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Form Layout Improvements */
.form-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-section h5 {
    margin-bottom: 1rem;
}

/* Form Field Alignment */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-control, .form-select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    height: auto;
    min-height: 2.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Button Alignment */
.btn-group-aligned {
    display: flex;
    align-items: end;
    gap: 0.5rem;
    height: 100%;
    padding-top: 2rem;
}

/* Hero Section Button Enhancements */
.hero-section .btn {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.hero-section .btn-light {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #007bff;
}

.hero-section .btn-light:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: #0056b3;
}

.hero-section .btn-outline-light {
    border-color: #ffffff;
    color: #ffffff;
    background-color: transparent;
}

.hero-section .btn-outline-light:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #007bff;
}

/* Clickable Metric Cards */
.clickable-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

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

.metric-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.form-field-with-button {
    display: flex;
    align-items: end;
    gap: 0.5rem;
}

.form-field-with-button .form-control,
.form-field-with-button .form-select {
    flex: 1;
}

.form-field-with-button .btn {
    margin-bottom: 0;
    white-space: nowrap;
    height: 2.75rem;
    display: flex;
    align-items: center;
}

/* Input Group Enhancements */
.input-group .btn {
    border-color: #ced4da;
    background-color: #f8f9fa;
    color: #495057;
    height: 2.75rem;
    display: flex;
    align-items: center;
}

.input-group .btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* Field Helper Text */
.field-helper {
    margin-top: 0.25rem;
    min-height: 1.2rem;
    font-size: 0.7rem;
    color: #6c757d;
}

/* Date Input Improvements */
.date-field-group {
    position: relative;
}

.date-helper-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #0d6efd;
    padding: 0.25rem;
    border-radius: 3px;
    z-index: 10;
}

.date-helper-btn:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Column Alignment Fixes */
.form-row .col-md-3, 
.form-row .col-md-4, 
.form-row .col-md-6, 
.form-row .col-lg-3, 
.form-row .col-lg-4 {
    display: flex;
    flex-direction: column;
    min-height: 120px;
}

.form-row .d-flex.align-items-end {
    justify-content: flex-end;
    align-items: flex-end;
    min-height: 120px;
}

/* Consistent Button Heights */
.btn {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.75rem 1rem;
}

.btn-sm {
    min-height: 2rem;
    font-size: 0.7rem;
    padding: 0.5rem 0.75rem;
}

.btn-lg {
    min-height: 3.25rem;
    font-size: 1.0rem;
    padding: 1rem 1.5rem;
}

/* Form Control Consistency */
.form-control, .form-select {
    min-height: 2.75rem !important;
    height: 2.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    line-height: 1.25;
    box-sizing: border-box;
}

.form-field-with-button .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}

.form-field-with-button .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 1px solid #ced4da;
}

/* Input Group Button Alignment */
.input-group {
    display: flex;
    width: 100%;
}

.input-group .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: 0;
    flex: 1;
    min-width: 0;
}

.input-group .btn {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: 1px solid #ced4da;
    flex-shrink: 0;
    min-height: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Field with Button Layout */
.form-field-with-button {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
    position: relative;
}

.form-field-with-button .form-control {
    flex: 1;
    min-width: 0;
}

.form-field-with-button .btn {
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    z-index: 1;
}

/* Label and Field Spacing */
.form-label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.field-helper {
    margin-top: 0.5rem;
    min-height: 1.25rem;
    font-size: 0.7rem;
    color: #6c757d;
}

/* Form Group Improvements - Universal Alignment System */
.form-group {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 180px;
    position: relative;
    overflow: visible;
    padding-bottom: 1rem;
}

.form-group .form-label {
    min-height: 4.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #495057;
    flex-shrink: 0;
    line-height: 1.3;
    padding-bottom: 0.25rem;
    display: flex;
    align-items: flex-end;
}

.form-group .form-control,
.form-group .form-select,
.form-group .input-group,
.form-group .btn {
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    height: 2.75rem;
    margin-top: 0;
    flex-shrink: 0;
}

.form-group .field-helper {
    margin-top: 0.25rem;
    min-height: 1.25rem;
    font-size: 0.7rem;
    color: #6c757d;
    flex-shrink: 0;
    position: static;
    z-index: 10;
    clear: both;
    padding-top: 0.25rem;
    display: block;
    width: 100%;
}

/* Universal Form Section Alignment */
.timeline-form .form-group,
.team-velocity-form .form-group,
.jira-connection-form .form-group,
.manual-input-form .form-group,
.workflow-form .form-group,
.risk-indicators-form .form-group {
    min-height: 180px;
    justify-content: flex-start;
    align-items: stretch;
    display: flex;
    flex-direction: column;
}

/* Ensure all labels have consistent height and bottom alignment */
.timeline-form .form-group .form-label,
.team-velocity-form .form-group .form-label,
.jira-connection-form .form-group .form-label,
.manual-input-form .form-group .form-label,
.workflow-form .form-group .form-label,
.risk-indicators-form .form-group .form-label {
    min-height: 4.5rem;
    display: flex;
    align-items: flex-end;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* Ensure all inputs are positioned consistently */
.timeline-form .form-group .form-control,
.timeline-form .form-group .form-select,
.timeline-form .form-group .input-group,
.team-velocity-form .form-group .form-control,
.team-velocity-form .form-group .form-select,
.team-velocity-form .form-group .input-group,
.team-velocity-form .form-group .btn,
.jira-connection-form .form-group .form-control,
.jira-connection-form .form-group .form-select,
.manual-input-form .form-group .form-control,
.manual-input-form .form-group .form-select,
.workflow-form .form-group .form-control,
.workflow-form .form-group .form-select,
.risk-indicators-form .form-group .form-control,
.risk-indicators-form .form-group .form-select {
    height: 2.75rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

/* Form Row Layout */
.timeline-form .row,
.team-velocity-form .row,
.jira-connection-form,
.manual-input-form,
.workflow-form,
.risk-indicators-form {
    display: flex;
    align-items: stretch;
}

.timeline-form .col-md-6,
.timeline-form .col-lg-3,
.team-velocity-form .col-md-4,
.jira-connection-form .col-md-6,
.jira-connection-form .col-md-3,
.manual-input-form .col-md-6,
.workflow-form .col-md-6,
.workflow-form .col-lg-3,
.risk-indicators-form .col-md-6 {
    display: flex;
    align-items: stretch;
}

/* Team Velocity Form Special Cases */
.team-velocity-form .col-md-4 .form-group {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.team-velocity-form .col-md-4:last-child .form-group {
    justify-content: flex-start;
}

.team-velocity-form .col-md-4:last-child .form-label {
    min-height: 4.5rem;
    visibility: hidden;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-end;
}

.team-velocity-form .col-md-4:last-child .btn {
    margin-top: 0;
    margin-bottom: 0.75rem;
    height: 2.75rem;
    flex-shrink: 0;
}

/* Force consistent button alignment */
.btn.d-block {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Prevent overlapping and ensure proper spacing */
.timeline-form,
.team-velocity-form {
    position: relative;
    z-index: 1;
}

.timeline-form .col-md-6,
.timeline-form .col-lg-3,
.team-velocity-form .col-md-4 {
    position: relative;
    overflow: visible;
}

/* Fix any z-index issues */
.form-group .input-group {
    position: relative;
    z-index: 2;
}

/* Ensure proper row spacing */
.timeline-form,
.team-velocity-form {
    margin-bottom: 2rem;
}

/* Clean up any floating or positioning issues */
.timeline-form::after,
.team-velocity-form::after {
    content: "";
    display: table;
    clear: both;
}

.min-vh-50 {
    min-height: 50vh;
}

.min-vh-80 {
    min-height: 80vh;
}

/* Navigation Enhancements */
.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Removed navigation CSS to prevent conflicts with bold-tech-theme.css */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #4ECDC4 0%, #2ECC71 100%);
}

/* Dashboard Preview */
.dashboard-preview {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Metric Cards - Bold Tech Theme */
.metric-card {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    border: none;
    background: linear-gradient(135deg, #4ECDC4 0%, #2ECC71 100%);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 0.6s ease forwards;
}

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

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.metric-value {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Quick Metrics for Dashboard Cards */
.quick-metric {
    text-align: center;
    padding: 0.75rem;
    background: rgba(78, 205, 196, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.quick-metric:hover {
    background: rgba(78, 205, 196, 0.1);
    transform: translateY(-1px);
}

.quick-metric .metric-value {
    font-size: 1.0rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.quick-metric .metric-label {
    font-size: 0.65rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.feature-icon {
    margin-bottom: 1rem;
}

/* Step Cards */
.step-card {
    position: relative;
    padding: 2rem;
    transition: var(--transition);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: var(--box-shadow);
}

/* Dashboard Cards */
.dashboard-card {
    transition: var(--transition);
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.dashboard-card .card-header {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

/* Timeline Metrics */
.timeline-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.timeline-metric:last-child {
    border-bottom: none;
}

/* Workflow Bottleneck Analysis */
.workflow-analysis {
    padding: 1rem 0;
}

.bottleneck-item {
    border-radius: 8px;
    padding: 0.75rem;
    background: rgba(0, 123, 255, 0.05);
    border-left: 4px solid var(--bs-primary);
}

.bottleneck-label {
    font-weight: 600;
    color: var(--bs-dark);
}

.bottleneck-value {
    font-weight: 700;
    color: var(--bs-primary);
}

.bottleneck-item .progress {
    background-color: rgba(0, 0, 0, 0.1);
}

.timeline-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-value {
    font-size: 1.0rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* Recommendation Cards */
.recommendation-card {
    padding: 1rem;
    background: rgba(0, 123, 255, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.recommendation-card:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateX(2px);
}

.rec-priority .badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
}

/* Form Enhancements */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: var(--transition);
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Button Enhancements */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border-width: 2px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.0rem;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card-header {
    border-bottom: 2px solid var(--primary-color);
    background: linear-gradient(90deg, #2c3e50 0%, #34495e 100%);
    color: white;
    font-weight: 600;
}

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

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .dashboard-preview {
        transform: none;
        margin-top: 2rem;
    }

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

    .step-number {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto 1rem;
    }

    .feature-card,
    .step-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .metric-value {
        font-size: 1.3rem;
    }

    .timeline-metric {
        flex-direction: column;
        text-align: center;
    }

    .timeline-label {
        margin-bottom: 0.25rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: var(--box-shadow-lg) !important;
}

/* Health Status Colors */
.health-excellent { color: var(--success-color) !important; }
.health-good { color: var(--info-color) !important; }
.health-concerning { color: var(--warning-color) !important; }

/* Tooltip styling for metric explanations */
.tooltip-icon {
    color: #6c757d;
    font-size: 0.65rem;
    cursor: help;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-left: 4px;
}

.tooltip-icon:hover {
    opacity: 1;
}

.metric-tooltip {
    position: absolute;
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    line-height: 1.3;
    max-width: 200px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    white-space: normal;
    word-wrap: break-word;
}

.metric-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #2c3e50;
}

.metric-tooltip.show {
    opacity: 1;
}

.timeline-metric {
    position: relative;
}

.timeline-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Metric card tooltips */
.metric-card {
    position: relative;
    overflow: visible;
}

.metric-card .metric-tooltip {
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 180px;
}

/* Responsive tooltip adjustments */
@media (max-width: 768px) {
    .metric-tooltip {
        max-width: 150px;
        font-size: 0.65rem;
        padding: 6px 10px;
        top: -45px;
    }

    .metric-card .metric-tooltip {
        top: -50px;
        max-width: 140px;
    }
}
.health-critical { color: var(--danger-color) !important; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

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

@keyframes slideUp{
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .btn, .dropdown, .navbar {
        display: none !important;
    }

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

    body {
        background: white;
    }
}

/* Sticky Form Actions */
.sticky-form-actions {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1020;
    padding: 1rem;
    margin-top: 2rem;
    transition: all 0.3s ease-in-out;
}

/* Dark mode support for sticky actions */
@media (prefers-color-scheme: dark) {
    .sticky-form-actions {
        background: rgba(33, 37, 41, 0.95);
        border-top-color: #495057;
    }
}

/* Mobile responsive sticky actions */
@media (max-width: 768px) {
    .sticky-form-actions {
        padding: 0.75rem;
        margin-top: 1rem;
    }
    
    .sticky-form-actions .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .sticky-form-actions .d-grid {
        gap: 0.5rem !important;
    }
}

/* Add bottom padding to form to prevent content overlap */
.dashboard-edit-form {
    padding-bottom: 6rem;
}

/* Enhance button styling within sticky container */
.sticky-form-actions .btn {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sticky-form-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Animation for when sticky bar appears */
.sticky-form-actions {
    animation: slideUpFade 0.4s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kanban-column {
    background: #495057;
    border-radius: 8px;
    padding: 15px;
    min-height: 400px;
    color: white;
}

.kanban-column:not(:last-child) {
    margin-right: 20px;
}

.kanban-column h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: white;
}

.epic-card {
    background: #6c757d;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: grab;
    transition: all 0.3s ease;
    border-left: 4px solid #adb5bd;
    color: white;
}

.epic-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.epic-card p {
    margin: 0;
    font-size: 0.85rem;
}

/* Mood ring */
.mood-ring-container {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 20px auto;
}

.mood-ring-outer {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(to right, #e74c3c, #3498db, #2ecc71);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.mood-ring-inner {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: #495057;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 4px 15px rgba(0,0,0,0.1);
    color: white;
}

/* Sticky Form Actions */
.sticky-form-actions {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1020;
    padding: 1rem;
    margin-top: 2rem;
    transition: all 0.3s ease-in-out;
}

/* Dark mode support for sticky actions */
@media (prefers-color-scheme: dark) {
    .sticky-form-actions {
        background: rgba(33, 37, 41, 0.95);
        border-top-color: #495057;
    }
}

/* Mobile responsive sticky actions */
@media (max-width: 768px) {
    .sticky-form-actions {
        padding: 0.75rem;
        margin-top: 1rem;
    }
    
    .sticky-form-actions .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .sticky-form-actions .d-grid {
        gap: 0.5rem !important;
    }
}

/* Add bottom padding to form to prevent content overlap */
.dashboard-edit-form {
    padding-bottom: 6rem;
}

/* Enhance button styling within sticky container */
.sticky-form-actions .btn {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sticky-form-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Animation for when sticky bar appears */
.sticky-form-actions {
    animation: slideUpFade 0.4s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sticky Form Actions */
.sticky-form-actions {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1020;
    padding: 1rem;
    margin-top: 2rem;
    transition: all 0.3s ease-in-out;
}

/* Dark mode support for sticky actions */
@media (prefers-color-scheme: dark) {
    .sticky-form-actions {
        background: rgba(33, 37, 41, 0.95);
        border-top-color: #495057;
    }
}

/* Mobile responsive sticky actions */
@media (max-width: 768px) {
    .sticky-form-actions {
        padding: 0.75rem;
        margin-top: 1rem;
    }
    
    .sticky-form-actions .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .sticky-form-actions .d-grid {
        gap: 0.5rem !important;
    }
}

/* Add bottom padding to form to prevent content overlap */
.dashboard-edit-form {
    padding-bottom: 6rem;
}

/* Enhance button styling within sticky container */
.sticky-form-actions .btn {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sticky-form-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Animation for when sticky bar appears */
.sticky-form-actions {
    animation: slideUpFade 0.4s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sticky Form Actions */
.sticky-form-actions {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1020;
    padding: 1rem;
    margin-top: 2rem;
    transition: all 0.3s ease-in-out;
}

/* Dark mode support for sticky actions */
@media (prefers-color-scheme: dark) {
    .sticky-form-actions {
        background: rgba(33, 37, 41, 0.95);
        border-top-color: #495057;
    }
}

/* Mobile responsive sticky actions */
@media (max-width: 768px) {
    .sticky-form-actions {
        padding: 0.75rem;
        margin-top: 1rem;
    }
    
    .sticky-form-actions .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .sticky-form-actions .d-grid {
        gap: 0.5rem !important;
    }
}

/* Add bottom padding to form to prevent content overlap */
.dashboard-edit-form {
    padding-bottom: 6rem;
}

/* Enhance button styling within sticky container */
.sticky-form-actions .btn {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sticky-form-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Animation for when sticky bar appears */
.sticky-form-actions {
    animation: slideUpFade 0.4s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sticky Form Actions */
.sticky-form-actions {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1020;
    padding: 1rem;
    margin-top: 2rem;
    transition: all 0.3s ease-in-out;
}

/* Dark mode support for sticky actions */
@media (prefers-color-scheme: dark) {
    .sticky-form-actions {
        background: rgba(33, 37, 41, 0.95);
        border-top-color: #495057;
    }
}

/* Mobile responsive sticky actions */
@media (max-width: 768px) {
    .sticky-form-actions {
        padding: 0.75rem;
        margin-top: 1rem;
    }
    
    .sticky-form-actions .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .sticky-form-actions .d-grid {
        gap: 0.5rem !important;
    }
}

/* Add bottom padding to form to prevent content overlap */
.dashboard-edit-form {
    padding-bottom: 6rem;
}

/* Enhance button styling within sticky container */
.sticky-form-actions .btn {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sticky-form-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Animation for when sticky bar appears */
.sticky-form-actions {
    animation: slideUpFade 0.4s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sticky Form Actions */
.sticky-form-actions {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1020;
    padding: 1rem;
    margin-top: 2rem;
    transition: all 0.3s ease-in-out;
}

/* Dark mode support for sticky actions */
@media (prefers-color-scheme: dark) {
    .sticky-form-actions {
        background: rgba(33, 37, 41, 0.95);
        border-top-color: #495057;
    }
}

/* Mobile responsive sticky actions */
@media (max-width: 768px) {
    .sticky-form-actions {
        padding: 0.75rem;
        margin-top: 1rem;
    }
    
    .sticky-form-actions .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .sticky-form-actions .d-grid {
        gap: 0.5rem !important;
    }
}

/* Add bottom padding to form to prevent content overlap */
.dashboard-edit-form {
    padding-bottom: 6rem;
}

/* Enhance button styling within sticky container */
.sticky-form-actions .btn {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sticky-form-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Animation for when sticky bar appears */
.sticky-form-actions {
    animation: slideUpFade 0.4s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sticky Form Actions */
.sticky-form-actions {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1020;
    padding: 1rem;
    margin-top: 2rem;
    transition: all 0.3s ease-in-out;
}

/* Dark mode support for sticky actions */
@media (prefers-color-scheme: dark) {
    .sticky-form-actions {
        background: rgba(33, 37, 41, 0.95);
        border-top-color: #495057;
    }
}

/* Mobile responsive sticky actions */
@media (max-width: 768px) {
    .sticky-form-actions {
        padding: 0.75rem;
        margin-top: 1rem;
    }
    
    .sticky-form-actions .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .sticky-form-actions .d-grid {
        gap: 0.5rem !important;
    }
}

/* Add bottom padding to form to prevent content overlap */
.dashboard-edit-form {
    padding-bottom: 6rem;
}

/* Enhance button styling within sticky container */
.sticky-form-actions .btn {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sticky-form-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Animation for when sticky bar appears */
.sticky-form-actions {
    animation: slideUpFade 0.4s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sticky Form Actions */
.sticky-form-actions {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1020;
    padding: 1rem;
    margin-top: 2rem;
    transition: all 0.3s ease-in-out;
}

/* Dark mode support for sticky actions */
@media (prefers-color-scheme: dark) {
    .sticky-form-actions {
        background: rgba(33, 37, 41, 0.95);
        border-top-color: #495057;
    }
}

/* Mobile responsive sticky actions */
@media (max-width: 768px) {
    .sticky-form-actions {
        padding: 0.75rem;
        margin-top: 1rem;
    }
    
    .sticky-form-actions .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .sticky-form-actions .d-grid {
        gap: 0.5rem !important;
    }
}

/* Add bottom padding to form to prevent content overlap */
.dashboard-edit-form {
    padding-bottom: 6rem;
}

/* Enhance button styling within sticky container */
.sticky-form-actions .btn {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sticky-form-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Animation for when sticky bar appears */
.sticky-form-actions {
    animation: slideUpFade 0.4s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sticky Form Actions */
.sticky-form-actions {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1020;
    padding: 1rem;
    margin-top: 2rem;
    transition: all 0.3s ease-in-out;
}

/* Dark mode support for sticky actions */
@media (prefers-color-scheme: dark) {
    .sticky-form-actions {
        background: rgba(33, 37, 41, 0.95);
        border-top-color: #495057;
    }
}

/* Mobile responsive sticky actions */
@media (max-width: 768px) {
    .sticky-form-actions {
        padding: 0.75rem;
        margin-top: 1rem;
    }
    
    .sticky-form-actions .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .sticky-form-actions .d-grid {
        gap: 0.5rem !important;
    }
}

/* Add bottom padding to form to prevent content overlap */
.dashboard-edit-form {
    padding-bottom: 6rem;
}

/* Enhance button styling within sticky container */
.sticky-form-actions .btn {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sticky-form-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Animation for when sticky bar appears */
.sticky-form-actions {
    animation: slideUpFade 0.4s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}