/* 
     * KonstrakOS - Professional Construction Management System
     * Stylesheet
     * Version: 1.0.0
     */

:root { 
    /* KonstrakOS Turquoise Palette */
--konstrak-primary: #00D9B5;
--konstrak-primary-dark: #00B894;
--konstrak-primary-light: #55EFC4;
--konstrak-gradient: linear-gradient(135deg, #00D9B5 0%, #00B894 100%);

    /* Neutral Colors */
--konstrak-white: #FFFFFF;
--konstrak-light: #F8F9FA;
--konstrak-gray: #E9ECEF;
--konstrak-dark: #2D3436;
--konstrak-text: #2D3436;
--konstrak-border: #DFE6E9;

    /* Status Colors */
--konstrak-success: #00D9B5;
--konstrak-warning: #FDCB6E;
--konstrak-danger: #FF6B6B;
--konstrak-info: #74B9FF;

    /* Legacy Bootstrap compatibility */
--primary-color: #00D9B5;
--bg-light: #F8F9FA;
--success-color: #00D9B5;
--warning-color: #FDCB6E;
--danger-color: #FF6B6B;
    }

body { 
background-color: var(--bg-light); 
font-family: 'Inter', system-ui, -apple-system, sans-serif; 
font-size: 0.8rem;
    }

h2 { font-size: 1.5rem; }
h5 { font-size: 1.1rem; }
.form-label { font-size: 0.75rem; }
.btn { font-size: 0.68rem; padding: 0.255rem 0.51rem; }


/* Navigation style*/
.navbar-brand { font-size: 85%; }    

/* All buttons same small size */
.btn-sm {
font-size: 0.68rem;
padding: 0.255rem 0.51rem;
    }

.project-card { 
border: none; 
transition: all 0.3s ease; 
cursor: pointer; 
background: white; 
box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    }
.project-card:hover { 
transform: translateY(-3px); 
box-shadow: 0 10px 15px rgba(0,0,0,0.1); 
    }
.stage-header { 
background: white !important; 
border-left: 4px solid var(--primary-color) !important; 
font-weight: 600; 
padding: 0.75rem 1rem; 
    }
.hidden { display: none !important; }
.progress { 
height: 6px; 
    }
.table > :not(caption) > * > * { padding: 0.5rem 0.5rem; }

    /* Custom Input Field Styles */
.form-control,
.form-select,
textarea.form-control {
background-color: #eefffc !important;
border: none !important;
border-bottom: 1px solid #00D9B5 !important;
border-radius: 0 !important;
padding-left: 0.5rem;
padding-right: 0.5rem;
transition: all 0.2s ease;
    }

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
background-color: #eefffc !important;
border-bottom: 2px solid #00D9B5 !important;
box-shadow: none !important;
outline: none !important;
    }

.form-control:disabled,
.form-control[readonly] {
background-color: #e9ecef !important;
border-bottom: 1px solid #ced4da !important;
    }

    /* Input group styling */
.input-group-text {
background-color: #eefffc !important;
border: none !important;
border-bottom: 1px solid #00D9B5 !important;
border-radius: 0 !important;
    }

    /* Loading spinner */
.spinner-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
    }

    /* Toast notifications */
.toast-container {
position: fixed;
top: 20px;
right: 20px;
z-index: 10000;
    }

    /* Empty state */
.empty-state {
text-align: center;
padding: 3rem 1rem;
    }

.empty-state i {
font-size: 3rem;
color: #cbd5e0;
margin-bottom: 1rem;
    }

    /* Icon enhancements */
.fas, .far {
transition: all 0.2s ease;
    }

    /* Remove animation from Add buttons */
.btn .fa-plus {
transition: none !important;
    }

    /* Better icon alignment in buttons using flexbox */
.btn {
display: inline-flex;
align-items: center;
gap: 0.35rem;
    }

.btn .fas, .btn .far {
line-height: 1;
    }

.fa-trash-alt:hover, .fa-times-circle:hover {
transform: scale(1.2);
    }

.fa-edit:hover {
transform: scale(1.1);
    }

    /* Budget indicator */
.budget-status {
display: inline-block;
padding: 0.25rem 0.5rem;
font-size: 0.7rem;
font-weight: 600;
    }

.budget-status.under { background: #D1F8F0; color: #00B894; }
.budget-status.over { background: #FFE5E5; color: #FF6B6B; }
.budget-status.at { background: #FFF4E0; color: #FDCB6E; }

    /* Row hover actions */
.row-actions {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
opacity: 0;
visibility: hidden;
transition: opacity 0.2s ease, visibility 0.2s ease;
z-index: 10;
    }

tbody tr:hover .row-actions {
opacity: 1;
visibility: visible;
    }

    /* Hide subtotal text when row is hovered */
.subtotal-value {
transition: opacity 0.2s ease;
    }

tbody tr:hover .subtotal-value {
opacity: 0;
    }

    /* Custom Badge Styles - Pastel backgrounds with darker text, no borders */
.badge {
border: none !important;
font-weight: 600;
padding: 0.35em 0.65em;
    }

    /* Success - Turquoise pastel */
.badge.bg-success {
background-color: #D1F8F0 !important;
color: #00B894 !important;
    }

    /* Primary - Turquoise pastel */
.badge.bg-primary {
background-color: #D1F8F0 !important;
color: #00B894 !important;
    }

    /* Warning - Amber pastel */
.badge.bg-warning {
background-color: #FFF4E0 !important;
color: #D68910 !important;
    }

    /* Danger - Coral pastel */
.badge.bg-danger {
background-color: #FFE5E5 !important;
color: #D63447 !important;
    }

    /* Info - Sky blue pastel */
.badge.bg-info {
background-color: #E3F2FD !important;
color: #5DADE2 !important;
    }

    /* Secondary - Gray pastel */
.badge.bg-secondary {
background-color: #e2e3e5 !important;
color: #4a5158 !important;
    }

    /* Light - Very light gray */
.badge.bg-light {
background-color: #f8f9fa !important;
color: #495057 !important;
    }

    /* Dark - Dark gray */
.badge.bg-dark {
background-color: #d6d8db !important;
color: #212529 !important;
    }

    /* Badge with border variant (if needed later) */
.badge-outline-success {
background-color: transparent !important;
color: #2d7a2d !important;
border: 1.5px solid #2d7a2d !important;
    }

.badge-outline-primary {
background-color: transparent !important;
color: #2563a8 !important;
border: 1.5px solid #2563a8 !important;
    }

.badge-outline-warning {
background-color: transparent !important;
color: #9a6f04 !important;
border: 1.5px solid #9a6f04 !important;
    }

.badge-outline-danger {
background-color: transparent !important;
color: #a12834 !important;
border: 1.5px solid #a12834 !important;
    }

.badge-outline-info {
background-color: transparent !important;
color: #1f7287 !important;
border: 1.5px solid #1f7287 !important;
    }

.badge-outline-secondary {
background-color: transparent !important;
color: #4a5158 !important;
border: 1.5px solid #4a5158 !important;
    }

    /* ========================================
       EDGY DESIGN - NO ROUNDED CORNERS
       ======================================== */

    /* Override ALL Bootstrap rounded corners */
.btn, .btn-sm, .btn-lg,
.form-control, .form-select, .form-control-sm,
.input-group, .input-group-text,
.card, .card-header, .card-body, .card-footer,
.modal-content, .modal-header, .modal-body, .modal-footer,
.dropdown-menu, .dropdown-item,
.badge, .alert,
.progress, .progress-bar,
.toast, .toast-header, .toast-body,
.accordion-button, .accordion-item, .accordion-collapse,
.nav-tabs .nav-link, .nav-pills .nav-link,
.pagination .page-link,
img, .img-thumbnail,
.project-card,
.rounded, .rounded-circle, .rounded-pill {
border-radius: 0 !important;
    }

    /* Force sharp corners on specific elements */
    * {
border-radius: 0 !important;
    }

    /* Buttons - Sharp & Edgy */
.btn {
border-radius: 0 !important;
font-weight: 600;
letter-spacing: 0.3px;
text-transform: uppercase;
font-size: 0.68rem !important;
padding: 0.255rem 0.51rem !important;
border-width: 1px !important;
    }

.btn-sm {
font-size: 0.68rem !important;
padding: 0.255rem 0.51rem !important;
border-width: 1px !important;
    }

    /* Button groups - MUST match the SMALL size */
.btn-group-sm > .btn,
.btn-group-sm > label.btn,
.btn-group-sm > .btn-check + .btn {
font-size: 0.68rem !important;
padding: 0.255rem 0.51rem !important;
font-weight: 600;
letter-spacing: 0.3px;
    }

    /* Ensure dropdown toggle in btn-group-sm matches small size */
.btn-group-sm .btn.dropdown-toggle {
font-size: 0.68rem !important;
padding: 0.255rem 0.51rem !important;
    }

    /* Input fields - Sharp */
.form-control, .form-select {
border-radius: 0 !important;
border: 2px solid var(--konstrak-border);
transition: all 0.2s ease;
    }

.form-control:focus, .form-select:focus {
border-color: var(--konstrak-primary);
box-shadow: 0 0 0 3px rgba(0, 217, 181, 0.1);
    }

    /* Cards - Sharp */
.card, .project-card {
border-radius: 0 !important;
border: 2px solid var(--konstrak-border);
    }

    /* Modal - Sharp */
.modal-content {
border-radius: 0 !important;
border: 3px solid var(--konstrak-primary);
    }

.modal-header {
border-radius: 0 !important;
border-bottom: 2px solid var(--konstrak-border);
    }

.modal-footer {
border-radius: 0 !important;
border-top: 2px solid var(--konstrak-border);
    }

    /* Badges - Sharp */
.badge {
border-radius: 0 !important;
padding: 0.4em 0.7em;
font-weight: 700;
letter-spacing: 0.5px;
    }

    /* Progress bars - Sharp */
.progress {
border-radius: 0 !important;
height: 8px;
border: 1px solid var(--konstrak-border);
    }

.progress-bar {
border-radius: 0 !important;
    }

    /* Dropdown - Sharp */
.dropdown-menu {
border-radius: 0 !important;
border: 2px solid var(--konstrak-border);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* Accordion - Sharp */
.accordion-item {
border-radius: 0 !important;
border: 2px solid var(--konstrak-border);
margin-bottom: 8px;
    }

.accordion-button {
border-radius: 0 !important;
    }

    /* Budget status - Sharp */
.budget-status {
border-radius: 0 !important;
padding: 0.3rem 0.6rem;
border: none !important;
    }

    /* Images - Sharp */
img, .img-thumbnail {
border-radius: 0 !important;
    }

    /* User avatar - Keep square */
#user-avatar, #user-avatar-dropdown,
#user-avatar-icon, #user-avatar-icon-dropdown {
border-radius: 0 !important;
    }

    /* Toast notifications - Sharp */
.toast {
border-radius: 0 !important;
border: 2px solid var(--konstrak-primary);
    }

    /* Alert - Sharp */
.alert {
border-radius: 0 !important;
border-left: 4px solid currentColor;
    }

    /* Stage header - Sharp with accent */
.stage-header {
border-radius: 0 !important;
border-left: 6px solid var(--konstrak-primary) !important;
    }

    /* Nav tabs - Sharp */
.nav-tabs .nav-link {
border-radius: 0 !important;
    }

.nav-tabs .nav-link.active {
border-bottom: 3px solid var(--konstrak-primary);
    }

    /* Pagination - Sharp */
.pagination .page-link {
border-radius: 0 !important;
    }

    /* Input groups - Sharp */
.input-group-text {
border-radius: 0 !important;
border: 2px solid var(--konstrak-border);
    }

    /* Tables - Sharp borders */
.table {
border: 2px solid var(--konstrak-border);
    }

.table thead th {
border-bottom: 3px solid var(--konstrak-primary);
    }

    /* Empty state icon container - Sharp */
.empty-state i {
display: inline-block;
padding: 2rem;
border: 3px solid #cbd5e0;
    }

    /* Project card edgy design */
.project-card {
border: 2px solid var(--konstrak-border);
position: relative;
overflow: hidden;
    }

.project-card:hover {
border: 2px solid var(--konstrak-primary);
box-shadow: 0 8px 16px rgba(0, 217, 181, 0.2);
    }

.project-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 4px;
height: 100%;
background: var(--konstrak-gradient);
transform: scaleY(0);
transition: transform 0.3s ease;
    }

.project-card:hover::before {
transform: scaleY(1);
    }

    /* ========================================
       END EDGY DESIGN
       ======================================== */

    /* KonstrakOS Turquoise Navbar */
.navbar-konstrak {
background: linear-gradient(135deg, #00D9B5 0%, #00B894 100%) !important;
box-shadow: 0 2px 10px rgba(0, 217, 181, 0.2) !important;
    }

.navbar-konstrak .navbar-brand {
font-size: 1.25rem !important;
color: white !important;
font-weight: 700 !important;
letter-spacing: 0.5px;
    }

.navbar-konstrak .text-primary {
color: white !important;
opacity: 0.95;
    }

.navbar-konstrak .fas.fa-layer-group {
color: white !important;
/*font-size: 1.3rem;*/
    }

    /* Buttons with turquoise */
.btn-primary {
background: var(--konstrak-gradient) !important;
border: 1px solid var(--konstrak-primary-dark) !important;
color: white !important;
font-weight: 600;
box-shadow: 0 2px 8px rgba(0, 217, 181, 0.25) !important;
transition: all 0.3s ease !important;
    }

.btn-primary:hover {
background: linear-gradient(135deg, #00B894 0%, #00A07A 100%) !important;
border: 1px solid var(--konstrak-primary-dark) !important;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 217, 181, 0.35) !important;
    }

.btn-outline-primary {
border: 1px solid var(--konstrak-primary) !important;
color: var(--konstrak-primary) !important;
background: transparent !important;
    }

.btn-outline-primary:hover {
background: var(--konstrak-primary) !important;
border: 1px solid var(--konstrak-primary) !important;
color: white !important;
    }

    /* Active/Checked state for button-check radio buttons */
.btn-check:checked + .btn-outline-primary {
background: var(--konstrak-primary) !important;
border: 1px solid var(--konstrak-primary) !important;
color: white !important;
    }

.btn-check:checked + .btn-outline-primary:hover {
background: var(--konstrak-primary-dark) !important;
border: 1px solid var(--konstrak-primary-dark) !important;
color: white !important;
    }

    /* All button variants - 1px border */
.btn-secondary {
border-width: 1px !important;
    }

.btn-success {
border-width: 1px !important;
    }

.btn-danger {
border-width: 1px !important;
    }

.btn-warning {
border-width: 1px !important;
    }

.btn-info {
border-width: 1px !important;
    }

.btn-light {
border: 1px solid var(--konstrak-border) !important;
    }

.btn-dark {
border-width: 1px !important;
    }

    /* Outline button variants - 1px border */
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light,
.btn-outline-dark {
border-width: 1px !important;
    }

    /* Card hover with turquoise accent */
.project-card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 25px rgba(0, 217, 181, 0.15) !important;
border: 1px solid rgba(0, 217, 181, 0.3) !important;
    }

    /* Progress bars with turquoise */
.progress-bar:not(.bg-danger) {
background-color: var(--konstrak-primary) !important;
    }

.progress-bar.bg-success {
background-color: var(--konstrak-primary) !important;
    }

.progress-bar.bg-primary {
background-color: var(--konstrak-primary) !important;
    }

    /* Red progress bar for exceeded budget - MUST override turquoise */
.progress-bar.bg-danger {
background-color: var(--konstrak-danger) !important;
    }

    /* Links */
a {
color: var(--konstrak-primary);
    }

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

    /* Text color utilities */
.text-danger {
color: var(--konstrak-danger) !important;
    }

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

    /* Stage header accent */
.stage-header {
border-left-color: var(--konstrak-primary) !important;
    }

    /* Mobile Modal Fixes */
@media (max-width: 991px) {
    /* Ensure modal can scroll on mobile */
.modal-dialog-scrollable {
        max-height: 100vh;
        margin: 0.5rem;
    }

.modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 1rem);
    }

.modal-dialog-scrollable .modal-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Invoice modal specific */
#invoiceModal .modal-body {
        max-height: calc(100vh - 150px);
        overflow-y: auto;
    }
    }

    /* Ensure modal footer is always visible */
.modal-footer {
position: sticky;
bottom: 0;
background: white;
z-index: 1;
border-top: 1px solid #dee2e6;
    }

    /* Sticky Navbar Spacing */
#dashboard-screen,
#workspace-screen {
padding-top: 1rem; /* Space below sticky navbar */
    }
.user-profile-trigger:hover {
opacity: 0.8;
transition: opacity 0.2s;
    }

.dropdown-item:hover {
background-color: #f8f9fa;
    }

#user-avatar, #user-avatar-icon {
border: 2px solid #fff;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
.step-circle {
width: 40px;
height: 40px;
border-radius: 50%;
background: #e9ecef;
display: inline-flex;
align-items: center;
justify-content: center;
font-weight: bold;
color: #6c757d;
transition: all 0.3s;
    }

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

.step-circle.completed {
background: #198754;
color: white;
    }

.step-line {
height: 2px;
background: #e9ecef;
flex: 1;
margin: 0 10px;
margin-top: 20px;
    }

.signature-pad canvas {
cursor: crosshair;
touch-action: none;
display: block;
width: 100%;
height: 100%;
    }

    /* Ensure the signature pad container doesn't interfere with touch events */
.signature-pad {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
    }

/* ========================================
   PHOTO MANAGEMENT STYLES
   ======================================== */

/* Photo Grid */
.photo-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 12px;
min-height: 100px;
}

@media (max-width: 768px) {
.photo-grid {
grid-template-columns: repeat(3, 1fr);
gap: 8px;
}
}

/* Photo Item */
.photo-item {
position: relative;
aspect-ratio: 1;
border-radius: 8px;
overflow: hidden;
cursor: pointer;
transition: all 0.3s ease;
background: #f8f9fa;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.photo-item:hover {
transform: scale(1.05);
box-shadow: 0 4px 16px rgba(0,0,0,0.2);
z-index: 10;
}

.photo-item img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}

.photo-item:hover img {
transform: scale(1.1);
}

/* Photo Badges */
.photo-badge {
position: absolute;
top: 8px;
right: 8px;
padding: 4px 8px;
border-radius: 12px;
font-size: 0.7rem;
font-weight: 600;
color: white;
backdrop-filter: blur(4px);
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.photo-type-before {
background: rgba(116, 185, 255, 0.9);
}

.photo-type-during {
background: rgba(253, 203, 110, 0.9);
}

.photo-type-after {
background: rgba(0, 217, 181, 0.9);
}

.photo-type-general {
background: rgba(108, 117, 125, 0.9);
}

/* Photo Upload Area */
.photo-upload-area {
border: 2px dashed #00D9B5;
border-radius: 12px;
padding: 40px 20px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.photo-upload-area:hover {
background: linear-gradient(135deg, #e8f9f6 0%, #d1f2eb 100%);
border-color: #00B894;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 217, 181, 0.2);
}

.photo-upload-area:active {
transform: translateY(0);
}

.photo-upload-area i {
color: #00D9B5;
transition: transform 0.3s ease;
}

.photo-upload-area:hover i {
transform: scale(1.1);
}

/* Photo Lightbox */
.photo-lightbox {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.95);
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
animation: fadeIn 0.3s ease;
}

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

.lightbox-content {
position: relative;
max-width: 90vw;
max-height: 90vh;
display: flex;
flex-direction: column;
align-items: center;
}

.lightbox-content img {
max-width: 100%;
max-height: calc(90vh - 120px);
object-fit: contain;
border-radius: 8px;
box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.lightbox-info {
width: 100%;
max-width: 600px;
margin-top: 20px;
padding: 15px;
background: rgba(0, 0, 0, 0.8);
border-radius: 8px;
backdrop-filter: blur(10px);
}

.lightbox-close {
position: absolute;
top: 20px;
right: 20px;
color: white;
font-size: 3rem;
font-weight: 300;
cursor: pointer;
z-index: 10001;
transition: all 0.2s ease;
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0,0,0,0.5);
border-radius: 50%;
}

.lightbox-close:hover {
transform: rotate(90deg);
background: rgba(255,0,0,0.8);
}

.lightbox-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(0,0,0,0.5);
color: white;
border: none;
font-size: 3rem;
font-weight: 300;
padding: 20px;
cursor: pointer;
transition: all 0.2s ease;
width: 60px;
height: 60px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}

.lightbox-nav:hover {
background: rgba(0, 217, 181, 0.8);
transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
left: 20px;
}

.lightbox-next {
right: 20px;
}

/* Floating Camera Button */
.floating-camera-btn {
position: fixed;
bottom: 100px;
right: 20px;
width: 65px;
height: 65px;
border-radius: 50%;
background: linear-gradient(135deg, #00D9B5 0%, #00B894 100%);
color: white;
border: none;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 6px 20px rgba(0, 217, 181, 0.5);
cursor: pointer;
z-index: 1000;
transition: all 0.3s ease;
animation: pulse 2s infinite;
}

.floating-camera-btn:hover {
transform: scale(1.15);
box-shadow: 0 8px 25px rgba(0, 217, 181, 0.7);
}

.floating-camera-btn:active {
transform: scale(1.0);
}

.floating-camera-btn i {
font-size: 1.6rem;
}

@keyframes pulse {
0%, 100% {
box-shadow: 0 6px 20px rgba(0, 217, 181, 0.5);
}
50% {
box-shadow: 0 6px 30px rgba(0, 217, 181, 0.8);
}
}

/* Photo Count Badge */
.photo-count-badge {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 10px;
background: linear-gradient(135deg, #00D9B5 0%, #00B894 100%);
color: white;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 600;
box-shadow: 0 2px 6px rgba(0, 217, 181, 0.3);
}

/* Photo Thumbnails in Activity Row */
.activity-photo-thumbs {
display: flex;
gap: 4px;
margin-top: 8px;
}

.activity-photo-thumb {
width: 40px;
height: 40px;
border-radius: 6px;
object-fit: cover;
border: 2px solid white;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
cursor: pointer;
transition: transform 0.2s ease;
}

.activity-photo-thumb:hover {
transform: scale(1.2);
z-index: 10;
}

/* Empty State */
.photo-empty-state {
text-align: center;
padding: 40px 20px;
color: #6c757d;
}

.photo-empty-state i {
font-size: 3rem;
margin-bottom: 15px;
opacity: 0.5;
}

/* Photo Type Pills in Nav */
.nav-pills .nav-link {
border-radius: 20px;
padding: 8px 16px;
font-size: 0.85rem;
transition: all 0.2s ease;
}

.nav-pills .nav-link:not(.active) {
background: #f8f9fa;
color: #6c757d;
}

.nav-pills .nav-link:not(.active):hover {
background: #e9ecef;
color: #00D9B5;
}

.nav-pills .nav-link.active {
background: linear-gradient(135deg, #00D9B5 0%, #00B894 100%);
}

/* Processing Overlay */
.photo-processing {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}

.photo-processing-content {
text-align: center;
color: white;
}

.photo-processing-spinner {
border: 4px solid rgba(255,255,255,0.3);
border-top: 4px solid #00D9B5;
border-radius: 50%;
width: 60px;
height: 60px;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
.floating-camera-btn {
bottom: 80px;
right: 15px;
width: 55px;
height: 55px;
}

.floating-camera-btn i {
font-size: 1.3rem;
}

.lightbox-nav {
width: 50px;
height: 50px;
font-size: 2rem;
padding: 10px;
}

.lightbox-prev {
left: 10px;
}

.lightbox-next {
right: 10px;
}

.lightbox-close {
top: 10px;
right: 10px;
width: 40px;
height: 40px;
font-size: 2rem;
}

.photo-upload-area {
padding: 30px 15px;
}

.photo-upload-area i {
font-size: 2rem !important;
}
}
/* ── Library styles ── */
.lib-search-item:hover { background: #f0fdf9 !important; }
.lib-search-item:last-child { border-bottom: none !important; }
.picker-item:hover { border-color: #00D9B5 !important; background: #f0fdf9 !important; }
.picker-item.border-success { border-color: #28a745 !important; }

/* ── Bootstrap form-switch — must come last to override * { border-radius: 0 !important } ── */
.form-switch .form-check-input { border-radius: 2em !important; }
