/* Custom styles for Ballistics App */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    background-color: #f8f9fa;
}

.navbar {
    background-color: #343a40;
    padding: 0.5rem 1rem;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    background-color: #f8f9fa;
}

.feature-card {
    transition: transform 0.2s;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e9ecef;
}

.getting-started-card {
    background-color: #e9ecef;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-section {
    padding: 4rem 0;
    background-color: #343a40;
    color: white;
    margin-bottom: 3rem;
}

.navbar-brand {
    font-weight: 600;
    color: white !important;
}

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

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

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Enhanced styles for new home page elements */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

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

/* Quick Actions Panel */
.card-title {
    color: #495057;
    font-weight: 600;
}

/* Data Widget Cards */
.card.text-center .card-body {
    padding: 1.5rem;
}

.card.text-center .fs-1 {
    font-size: 2.5rem !important;
}

.card.text-center .card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card.text-center .card-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Recent Sessions Table */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* Badge styling */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Button enhancements */
.btn {
    font-weight: 500;
    transition: all 0.2s ease;
}

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

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

/* Custom styles */
.form-group {
    margin-bottom: 1rem;
}

.table-responsive {
    margin-top: 1rem;
}

.btn-group .btn {
    margin-right: 0.25rem;
}

/* Form validation styles */
.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.input-validation-error {
    border-color: #dc3545;
}

.input-validation-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Navigation styles */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

/* Form styles */
.form-label {
    font-weight: 500;
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Button styles */
.btn {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
}

.btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-secondary {
    margin-left: 0.5rem;
}

/* Form styles */
.validation-summary-errors {
    color: #dc3545;
    margin-bottom: 1rem;
}

.validation-summary-valid {
    display: none;
}

/* Card styles */
.card {
    margin-bottom: 1rem;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Table styles */
.table th {
    border-top: none;
}

/* Custom styles for shooting records */
.group-size-inches {
    color: #0d6efd;
    font-weight: 500;
}

.wind-direction {
    font-weight: 500;
}

/* Navbar customization */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

/* Weather loading spinner */
.spin {
    animation: spin 1s linear infinite;
}

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

/* ========================================
   Phase 1: Navigation Restructure Styles
   ======================================== */

/* Dropdown Menu Enhancements */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
    min-width: 220px;
    z-index: 1030;
}

.navbar-nav .dropdown-item {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #495057;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.navbar-nav .dropdown-item.primary-action {
    font-weight: 600;
    color: #0d6efd;
}

.navbar-nav .dropdown-item.primary-action:hover {
    background-color: #e7f1ff;
}

.navbar-nav .dropdown-item i {
    width: 1.25rem;
    margin-right: 0.5rem;
    text-align: center;
}

.navbar-nav .dropdown-divider {
    margin: 0.5rem 0;
    border-top-color: #e9ecef;
}

/* Hover behavior for desktop */
@media (min-width: 768px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
    }
    
    .navbar-nav .dropdown > .dropdown-toggle:active {
        pointer-events: none;
    }
}

/* Active page highlighting in dropdown */
.navbar-nav .dropdown-item.active {
    background-color: #e7f1ff;
    color: #0d6efd;
    font-weight: 500;
}

/* Dropdown icons styling */
.navbar-nav .nav-link i.nav-icon {
    font-size: 1rem;
    margin-right: 0.375rem;
}

/* Mobile menu enhancements */
@media (max-width: 767.98px) {
    .navbar-collapse {
        background-color: #343a40;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .navbar-nav .dropdown-menu {
        background-color: #2c3136;
        border: none;
        box-shadow: none;
        margin-left: 1rem;
    }
    
    .navbar-nav .dropdown-item {
        color: rgba(255, 255, 255, 0.85);
        padding: 0.5rem 1rem;
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: #3d4349;
        color: #fff;
    }
    
    .navbar-nav .dropdown-item.primary-action {
        color: #7db4ff;
    }
    
    .navbar-nav .dropdown-divider {
        border-top-color: #495057;
    }
}

/* Smooth transitions */
.dropdown-menu {
    animation: fadeInDown 0.2s ease-in-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation link spacing and styling */
.navbar-nav .nav-item {
    margin-right: 0.25rem;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.15s ease-in-out;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown toggle arrow styling */
.navbar-nav .dropdown-toggle::after {
    font-size: 0.75rem;
    margin-left: 0.375rem;
    vertical-align: middle;
}

/* User info styling */
.navbar-text {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.625rem;
        font-size: 0.875rem;
    }
    
    .navbar-nav .dropdown-menu {
        min-width: 200px;
        font-size: 0.875rem;
    }
}

/* ========================================
   Phase 2: Home Page Redesign Styles
   ======================================== */

/* Quick Actions Sticky Bar */
.quick-actions-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.quick-actions-bar .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.quick-actions-bar .btn i {
    margin-right: 0.375rem;
}

.quick-actions-bar .form-select {
    max-width: 250px;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Context selectors */
.context-selectors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.context-selectors label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    margin-right: 0.25rem;
    margin-bottom: 0;
}

/* At a Glance Section */
.at-a-glance {
    margin-bottom: 2rem;
}

.at-a-glance .metric-card {
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.at-a-glance .metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.at-a-glance .metric-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.at-a-glance .metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
}

.at-a-glance .metric-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Recent Sessions Enhanced */
.recent-sessions .session-type-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.recent-sessions .session-type-velocity {
    background-color: #cfe2ff;
    color: #084298;
}

.recent-sessions .session-type-group {
    background-color: #d1e7dd;
    color: #0f5132;
}

.recent-sessions .session-type-combined {
    background-color: #cff4fc;
    color: #055160;
}

.recent-sessions .session-type-distance {
    background-color: #f8d7da;
    color: #842029;
}

/* Performance Snapshot Section */
.performance-snapshot {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.performance-snapshot h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.performance-snapshot .stat-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.performance-snapshot .stat-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    opacity: 0.9;
}

.performance-snapshot .stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.performance-snapshot .stat-value {
    font-size: 1.125rem;
    font-weight: 600;
}

.performance-snapshot .btn-light {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 500;
}

.performance-snapshot .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: #0d6efd;
}

.section-header h5 {
    margin: 0;
    font-weight: 600;
    color: #212529;
}

/* Responsive adjustments for Quick Actions Bar */
@media (max-width: 767.98px) {
    .quick-actions-bar {
        padding: 0.75rem 0;
    }
    
    .quick-actions-bar .btn {
        width: 100%;
        margin-right: 0;
    }
    
    .quick-actions-bar .form-select {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
    }
    
    .context-selectors {
        flex-direction: column;
        width: 100%;
    }
    
    .at-a-glance .metric-icon {
        font-size: 2rem;
    }
    
    .at-a-glance .metric-value {
        font-size: 1.5rem;
    }
    
    .performance-snapshot {
        padding: 1.5rem;
    }
}

/* Smooth transitions for all interactive elements */
.metric-card,
.btn,
.form-select,
.table-hover tbody tr {
    transition: all 0.2s ease-in-out;
}

/* Record Session Dropdown Button */
.btn-record-session {
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.btn-record-session i {
    font-size: 1.125rem;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    display: block;
}

.empty-state p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #6c757d;
}

.empty-state .btn-empty-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    margin-top: 0.25rem;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.15);
}

.empty-state .btn-empty-state i {
    font-size: 1rem;
    margin: 0;
    opacity: 1;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

.empty-state .btn-empty-state span {
    line-height: 1;
}

.empty-state .btn-empty-state:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.25);
}

/* ========================================
   Setup Wizard Styles - Phase 1
   ======================================== */

/* Wizard Modal */
.setup-wizard-modal {
    border-radius: 0.5rem;
}

.setup-wizard-modal .modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1.25rem 1.5rem;
}

.setup-wizard-modal .modal-body {
    padding: 2rem 1.5rem;
    min-height: 300px;
}

.setup-wizard-modal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

/* Progress Indicator */
.setup-wizard-progress {
    margin-bottom: 2rem;
}

.progress-step-indicator {
    position: relative;
    margin-bottom: 0.5rem;
}

.progress-step {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step-circle .step-number {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.875rem;
}

.step-circle.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.step-circle.active .step-number {
    color: #fff;
}

.step-circle.completed {
    background-color: #28a745;
    border-color: #28a745;
}

.step-circle.completed .step-number {
    color: #fff;
}

.step-circle.completed::after {
    content: '✓';
    position: absolute;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
}

.step-circle.completed .step-number {
    display: none;
}

.step-connector {
    flex: 1;
    height: 2px;
    background-color: #dee2e6;
    margin: 0 0.5rem;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Highlight connector when previous step is completed */
.progress-step:has(.step-circle.completed) .step-connector {
    background-color: #28a745;
}

.progress-step:last-child .step-connector {
    display: none;
}

/* Step Content */
.setup-wizard-content {
    position: relative;
    min-height: 250px;
}

.setup-wizard-step {
    transition: opacity 0.3s ease;
    opacity: 1;
}

.setup-wizard-step.d-none {
    display: none !important;
}

.step-icon {
    margin-bottom: 1.5rem;
}

/* Navigation Feature Cards (Step 2) */
.nav-feature-card {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
}

.nav-feature-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}

.nav-feature-card h6 {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #212529;
}

.nav-feature-card small {
    display: block;
    color: #6c757d;
}

/* Wizard Actions */
.setup-wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.setup-wizard-actions .btn {
    min-width: 100px;
}

/* Responsive Design */
@media (max-width: 767.98px) {
    .setup-wizard-modal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .setup-wizard-modal .modal-body {
        padding: 1.5rem 1rem;
        min-height: 250px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
    }

    .step-circle .step-number {
        font-size: 0.75rem;
    }

    .step-connector {
        margin: 0 0.25rem;
    }

    .setup-wizard-step h4 {
        font-size: 1.25rem;
    }

    .setup-wizard-step .lead {
        font-size: 1rem;
    }

    .step-icon i {
        font-size: 3rem !important;
    }

    .nav-feature-card {
        margin-bottom: 0.5rem;
    }

    .setup-wizard-actions {
        flex-direction: column-reverse;
    }

    .setup-wizard-actions .btn {
        width: 100%;
        margin: 0;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .setup-wizard-modal .modal-dialog {
        max-width: 600px;
    }
}

@media (min-width: 992px) {
    .setup-wizard-modal .modal-dialog {
        max-width: 700px;
    }
} 