/* Reset and base styles */
@font-face {
  font-family: 'Muli', Fallback, sans-serif;
  src: url('/fonts/Muli-Regular.woff2') format('woff2');
  font-weight: 400;	
  font-style: regular;	
}
@font-face {
  font-family: 'Muli', Fallback, sans-serif;
  src: url('/fonts/Muli-Bold.woff2') format('woff2');
  font-weight: 700;	
  font-style: regular;		
}
@font-face {
  font-family: 'EAN-13';
  src: url('/fonts/LibreBarcodeEAN13Text-Regular.woff2') format('woff2');
  font-weight: 400;	
  font-weight: normal;
  font-style: normal;
  font-display: block;		
}

@font-face {
  font-family: 'LibreBarcode128';
  src: url('/fonts/LibreBarcode128-Regular.woff2') format('woff2');
  font-weight: 400;	
  font-weight: normal;
  font-style: normal;
  font-display: swap;		
}
@font-face {
  font-family: 'Code128';
  src: url('/fonts/code128.woff2') format('woff2');
  font-weight: 400;	
  font-weight: normal;
  font-style: normal;
  font-display: swap;		
}
@font-face {
  font-family: 'LibreBarcode39';
  src: url('/fonts/LibreBarcode39-Regular.woff2') format('woff2');
  font-weight: 400;	
  font-weight: normal;
  font-style: normal;
  font-display: swap;		
}
@font-face {
  font-family: 'code25I';
  src: url('/fonts/code25I.woff2') format('woff2');
  font-weight: 400;	
  font-weight: normal;
  font-style: normal;
  font-display: swap;		
}
@font-face {
  font-family: 'GS1-13';
  src: url('/fonts/GS1-13.woff2') format('woff2');
  font-weight: 400;	
  font-weight: normal;
  font-style: normal;
  font-display: swap;		
}



/* ===== FULLSCREEN NUMBER DISPLAY ===== */

#number-display-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFF;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

#number-display-overlay.active {
    opacity: 1;
}

.number-display-content {
    text-align: center;
    padding: 2rem;
    width: 100%;
}

.number-display-number {
    color: #000;
    font-size: 16rem;
    font-weight: 400;
    font-family: 'EAN-13';
    line-height: 1.2;
    user-select: none;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    word-wrap: break-word;
}

/* Responsive sizing */
@media (max-width: 600px) {
    .number-display-number {
        font-size: 55vw;
    }
}

@media (min-width: 1200px) {
    .number-display-number {
        font-size: 15vw;
    }
}

/* Landscape mode */
/*
@media (max-height: 500px) {
    .number-display-number {
        font-size: 15vh;
    }
}
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal: #0d799b;
    --teal-dark: #004669;
    --teal-light: #2298ab;
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: #d0d0d0;
    --shadow: rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Muli', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem;
}
.lists-view-content .container {
	padding:0;
	margin:0;
}
/* Header */
.app-header {
    background: var(--teal);
    padding: 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px var(--shadow);
}

.app-logo, .app-logo-white {
    display: flex;
    align-items: center;
	background-image: url('../img/logo.svg');
	background-size: contain;
	background-repeat:no-repeat;
	width:160px;
	height:50px;
	margin-bottom:2rem;
}
.app-logo-white {
	filter: brightness(0) saturate(100%) invert(100%) sepia(90%) saturate(0%) hue-rotate(163deg) brightness(110%) contrast(110%);
	margin-bottom:0;
}
.app-logo:hover, .app-logo-white:hover {
	cursor:pointer;
}

.logout-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}
.menu-btn {
    background: var(--teal);
    border: 2px solid white;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;	
	
	background: url('../img/hamburger.svg');
	background-size: 70% 70%;
	background-position: 50% 50%;
	background-repeat:no-repeat;
	
	border-color: white; 
	color: white; 
	width: 40px; 
	height: 40px; 
	line-height: 36px;
	padding: 0; 
	font-size: 1.2rem;
}
.menu-btn:hover {
	  background-color: var(--teal-dark);
}
/* Views */
.view {
    display: none;
    flex-direction: column;
    min-height: calc(100vh - 80px);
}

.view.active {
    display: flex;
}

/* Forms */
.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0rem;
}

.auth-box {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px var(--shadow);
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}
.new-item-input-container input[type="text"] {
	border-top:0;
	border-left:0;
	border-right:0;
	border-radius:0;
	padding: 0rem 0rem 0.75rem 0rem;
}
input:focus {
    outline: none;
    border-color: var(--teal);
}

.btn {
    width: auto;
    padding: 1rem 2rem;
    background: var(--teal);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
	margin-bottom:1rem;
}

.btn:hover {
    background: var(--teal-dark);
}

.btn:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-primary);
    margin-top: 0.75rem;
}

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--teal);
    color: var(--teal);
}
.toggle-completed-btn {
	margin-top: 1.5rem; 
	padding: 0.75rem; 
	background: var(--bg-secondary); 
	border: 1px solid var(--border); 
	border-radius: var(--radius); 
	cursor: pointer;	
	
	font-size: 1rem;
	font-weight:700;
	width:auto;
    background: var(--teal);
    border-color: var(--teal);
    color: var(--bg-primary);	
}
/* Lists view */
.lists-view-content {
    flex: 1;
    padding: 1rem 1rem;
    padding-bottom: 120px;
}

#lists-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}
#items-list-name {
	display:inline-block;
	float:left;
	position:relative;
	font-weight:700;
	font-size: 1.25rem;
	color: var(--text-primary)!important;
	margin-right:1rem!important;
}
#list-badge-container {
	margin-top: 0.2rem;
	margin-bottom: 1rem;
	text-align: center;
	display:inline-block;
	float:left;
	position:relative;
}
.list-item {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 6px var(--shadow);
}

.list-info::before {
    content: '☰';
	color: var(--teal);
    display: inline-block;
    float: left;
	font-size: 1.5rem;
    line-height: 32px;
    left: -10px;
	top: -0.3rem;
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.list-item:hover {
    box-shadow: 0 4px 12px var(--shadow);
    transform: translateY(-2px);
}

.list-name {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
    display: inline-block;
	float:left;
	position:relative;
}

.shared-badge {
    background: var(--teal);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* List view */
.list-view-header {
    background: var(--teal);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 2px 8px var(--shadow);
}

#current-list-name {
    font-size: 1.5rem;
    font-weight: 400;
    flex: 1;
    color: white;
    text-align: center;
}

.list-view-content {
    flex: 1;
    padding: 0rem 0rem 1rem;
    padding-bottom: 200px;
}

#items-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.item {
    /*border-radius: var(--radius);*/
    padding: 0;/*1rem 1.25rem;*/
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: grab;
	font-size: 1.2rem;
	position: relative;
    /*box-shadow: 0 1px 3px var(--shadow);*/
}
.item:active::after {
    content: '::';
	font-size: 1.5rem;
	font-weight:700;
	color: var(--teal-dark);
	right: 50px;
	position:absolute;
	top:0px;
}
.item.completed:active::after {
	content: ' ';
	cursor: default!important;
}
.item:hover {
    /*box-shadow: 0 2px 8px var(--shadow);*/
}

.item:active {
    cursor: grabbing;
}

.item.dragging {
    opacity: 0.5;
}

.item-checkbox {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
/* Editable item styling */
.item-content, #items-list-name {
	overflow: hidden;
    padding: 0.2rem 0.3rem;
    border: 2px solid transparent; /* Invisible border normally */
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: text;
}
#items-list-name { 
	margin-left:-0.3rem!important;
	margin-top:-0.2rem!important;
}
/* When editing (focused) */
.item-content:focus, #items-list-name:focus {
    outline: none; /* Remove default browser outline */
    background-color: #EEEEEE; /* Light yellow background */
    border-color: #EEEEEE; /* Blue border */
    /*box-shadow: 0 0 0 3px rgba(75, 75, 75, 0.1); /* Soft glow */
}

/* Hover hint */
.item-content:hover, #items-list-name:hover {
    background-color: #f8f9fa;
}
.barcode .item-content, .completed .item-content, .completed #items-list-name {
	margin-right: 2rem; 	
}
.checkbox-circle {
    width: 32px;
    height: 32px;
    border: 3px solid var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: white;
}

.item-checkbox:hover .checkbox-circle {
    border-color: var(--teal-dark);
    background: rgba(26, 122, 138, 0.05);
}

.item-checkbox.completing .checkbox-circle {
    border-color: var(--teal);
    background: var(--teal);
    animation: checkComplete 0.5s ease-out;
}

.item-checkbox.completing .checkbox-circle svg {
    animation: checkDraw 0.3s ease-out 0.2s both;
}

.checkbox-circle svg {
    width: 20px;
    height: 20px;
    color: white;
    stroke-width: 3;
}

@keyframes checkComplete {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes checkDraw {
    0% {
        stroke-dasharray: 0 100;
    }
    100% {
        stroke-dasharray: 100 100;
    }
}

.item.completed {
    opacity: 0.5;
}

.item.completed .item-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.item.completed .checkbox-circle {
    border-color: var(--text-muted);
    background: var(--text-muted);
}

.item-text {
    flex: 1;
    font-size: 1rem;
    color: var(--text-primary);
}

.show-completed-btn {
    background: var(--bg-secondary);
    border: none;
    color: var(--teal);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    cursor: pointer;
    margin-top: 1rem;
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 3px var(--shadow);
}

.show-completed-btn::before {
    content: '›';
    font-size: 1.5rem;
    font-weight: bold;
    transition: var(--transition);
}

.show-completed-btn:hover {
    box-shadow: 0 2px 8px var(--shadow);
}

.show-completed-btn.expanded::before {
    transform: rotate(90deg);
}

.completed-items {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* New item input */
.new-item-container {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    box-shadow: 0 -2px 8px var(--shadow);
}

.new-item-input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.new-item-input:focus {
    outline: none;
    border-color: var(--teal);
}

.add-item-btn {
    background: var(--teal);
    border: none;
    color: white;
    padding: 0 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.add-item-btn:hover {
    background: var(--teal-dark);
}
.list-actions-footer {
	position: relative; 
	bottom: 0; 
	left: 0; 
	right: 0; 
	background: var(--bg-primary); 
	margin-top:2rem;
	/*border-top: 1px solid var(--border); */
	padding: 0rem; 
	display: none; 
	justify-content: left; 
	gap: 0.5rem; 
	flex-wrap: wrap; 
	z-index: 50;"
}
/* List actions */
.list-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.action-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    border-radius: 50%;
    color: var(--teal);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow);
    position: relative;
}

.action-btn:hover {
    background: var(--teal);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--shadow);
}

.action-btn.active {
    background: var(--teal);
    color: white;
}

.action-btn.danger:hover {
    background: #d32f2f;
    color: white;
}

.action-icon {
    width: 24px;
    height: 24px;
}

.action-icon svg {
    width: 100%;
    height: 100%;
}

/* Floating action button (for new list) */
.fab {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 50px;
    background: var(--teal);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 100;
}

.fab:hover {
    background: var(--teal-dark);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 122, 138, 0.3);
}

.fab::before {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
}

/* Empty state */
.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 1rem;
    font-size: 1rem;
}

/* Security badge */
.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(26, 122, 138, 0.1);
    border: 1px solid var(--teal);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    color: var(--teal);
}

.security-icon {
    font-size: 1.25rem;
}

.btn1:hover {
    cursor: pointer;
}
.btn1 {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 100px;
    left: 0px;
    transition-duration: 0.5s;
}
.btn1 .icon-left {
    transition-duration: 0.5s;
    position: absolute;
    height: 8px;
    width: 30px;
    top: 30px;
    background-color: #212121;
    left: 0px;
}
.btn1 .icon-left:before {
    transition-duration: 0.5s;
    position: absolute;
    width: 30px;
    height: 8px;
    background-color: #212121;
    content: "";
    top: -20px;
}
.btn1 .icon-left:after {
    transition-duration: 0.5s;
    position: absolute;
    width: 30px;
    height: 8px;
    background-color: #212121;
    content: "";
    top: 20px;
}
.btn1 .icon-right:before {
    transition-duration: 0.5s;
    position: absolute;
    width: 30px;
    height: 8px;
    background-color: #212121;
    content: "";
    top: -20px;
}
.btn1 .icon-right:after {
    transition-duration: 0.5s;
    position: absolute;
    width: 30px;
    height: 8px;
    background-color: #212121;
    content: "";
    top: 20px;
}
.btn1 .icon-right {
    transition-duration: 0.5s;
    position: absolute;
    height: 8px;
    width: 30px;
    top: 30px;
    background-color: #212121;
    left: 30px;
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .fab {
        bottom: auto;
        top: 1rem;
        right: 1rem;
    }
    
    .new-item-container {
        bottom: 80px;
    }
    
    .list-actions {
        bottom: 0;
    }
    
    body.lists-view .fab {
        top: 1rem;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 480px) {
	
	.app-logo, .app-logo-white {
		width: 120px;
		height: 37.5px;
	}
	.menu-btn {
		width: 30px;
		height: 30px;
		line-height: 26px;
	}
    .auth-box {
        padding: 2rem 1.5rem;
    }
    
    .list-actions {
        flex-wrap: wrap;
    }
    
    .action-btn {
        font-size: 0.7rem;
    }
}
/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    bottom: 0rem;
    left: 0%;
	width: 100%;
    transform: translateX(0%) translateY(100px);
    background: var(--teal-dark);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    font-size: 1.25rem;
	text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(0%) translateY(0);
}
/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-secondary);
    /* border-radius: var(--radius); */
    padding: 2rem 2rem 5rem 2rem;
    max-width: 500px;
    width: 100%;
    min-height: 100%;
	height:auto;
    right: 0;
    top: 0;
    position: absolute;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); */
    animation: slideUp 0.3s ease-out;
	scroll-behavior: auto;
	line-height: 1.8;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.modal-input:focus {
    outline: none;
    border-color: var(--teal);
}

.modal-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.modal-textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap; /* Allow buttons to wrap to next line */
	flex-direction: column;
}
.modal-btn {
        width: 100%; /* Full width buttons */
    }

.modal-btn {
    flex: 1;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.modal-btn-primary {
    background: var(--teal);
    color: white;
}

.modal-btn-primary:hover {
    background: var(--teal-dark);
}

.modal-btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.modal-btn-secondary:hover {
    background: var(--border);
}

.modal-btn-danger {
    background: var(--teal-dark);
    color: white;
}

.modal-btn-danger:hover {
    background: #b71c1c;
}

.modal-message {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.checkboxHolder input[type="radio"] {
	border-radius: 50%;
}
.checkboxHolder input[type="checkbox"], .checkboxHolder input[type="radio"] {
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: var(--teal);
    width: 32px;
    height: 32px;
    border: 2px solid currentColor;
	border-radius:50%;
    float: left;
    display: inline-block;
}
.completed input[type="checkbox"] {
    color: var(--text-muted);	
}
input[type="checkbox"]:hover, input[type="radio"]:hover {
	cursor: pointer;
}
input[type="checkbox"] + label, input[type="radio"] + label{
    width: auto;
	max-width:80%;
	float: left;
	line-height: 120%;
    display: inline-block;
	margin-left: 1rem;
    margin-right: 1rem;
}
.checkboxHolder input[type="checkbox"], .checkboxHolder input[type="radio"] {
  /* ...existing styles */
  display: grid;
  place-content: center;
}

.checkboxHolder input[type="checkbox"]::before, .checkboxHolder input[type="radio"]::before {
  content: "";
  width: 1em;
  height: 1em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--teal);
}
.completed input[type="checkbox"]::before {
  box-shadow: inset 1em 1em var(--text-muted);	
}
.checkboxHolder input[type="checkbox"]:checked::before, .checkboxHolder input[type="radio"]:checked::before {
  transform: scale(1.1);
}

.checkboxHolder input[type="checkbox"]::before, .checkboxHolder input[type="radio"]::before {
  /* ...existing styles */

  transform-origin: bottom left;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
/* Item completion animation */
.item.completing input {
    animation: checkAnimation 0.75s ease-out;
}

@keyframes checkAnimation {
    0% {
        left: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(0.5);
    }
}

/* Optional: Add a fade effect for completed items */
.item.completed {
    animation: fadeToCompleted 0.3s ease-out;
}

@keyframes fadeToCompleted {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Hamburger menu dropdown */
.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px var(--shadow);
    min-width: 150px;
    margin-top: 0.5rem;
    display: none;
    z-index: 100;
}

.menu-dropdown.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.menu-item {
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

.menu-item:last-child {
   /*border-bottom: none;*/
}

.menu-item:hover {
    background: var(--bg-primary);
    color: var(--teal);
}

.header-menu-container {
    position: relative;
}

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

/* ===== v3.0 ENHANCEMENTS ===== */

/* Account Management */
.account-info {
    padding: 1rem 0;
}

.account-field {
    margin-bottom: .5rem;
}

.account-field label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;

    letter-spacing: 0.05em;
}

.account-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Share Dialog */
.share-dialog {
    max-height: 60vh;
    overflow-y: auto;
}

.shares-list {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.shares-list h4 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.share-item span {
    font-size: 0.95rem;
}

.share-form {
    margin-top: 1rem;
}

.share-form h4 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Invitations */
.invitations-list {
    max-height: 50vh;
    overflow-y: auto;
}

.invitation-item {
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.invitation-item div {
    flex: 1;
}

.invitation-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Menu */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item {
    width: 100%;
    padding: 0rem 0 1rem 0;
	margin-bottom: 0.5rem;
    background: var(--bg-primary);
    border: none;
	border-bottom: solid 2px var(--bg-primary);
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: left;
    transition: var(--transition);	
}

.menu-item:hover {
    border-bottom: solid 2px var(--border);
}

.menu-item.danger {
    color: #d32f2f;
}

.menu-item.danger:hover {
    background: #ffebee;
}

/* List badges */
.list-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--teal);
    color: white;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.list-badge.shared {
    background: #6b7280;
}

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 2rem auto;
    border: 4px solid var(--border);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Icon button improvements */
.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
    border-radius: 4px;
    display: none;
	right: 0;
	position: absolute;
    align-items: center;
    justify-content: center;
}
.completed .icon-btn {
	display: inline-flex;
}
.icon-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Enhanced modal for larger content */
.modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

/* Empty subtitle styling */
.empty-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Responsive improvements */
@media (max-width: 600px) {
	.modal-actions {
        flex-direction: column; /* Stack vertically */
    }
    
    .modal-btn {
        width: 100%; /* Full width buttons */
    }
    .share-dialog {
        max-height: 70vh;
    }
    
    .invitations-list {
        max-height: 60vh;
    }
    
    .invitation-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
}

/* Smooth transitions */
.view {
    transition: opacity 0.2s ease;
}

.view:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.view.active {
    opacity: 1;
}

/* List Action Buttons at Bottom */
.list-actions-footer {
    /*box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);*/
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--bg-primary);
    border-color: var(--teal);
    color: var(--teal);
}

.action-btn.danger {
    color: #d32f2f;
    border-color: #d32f2f;
}

.action-btn.danger:hover {
    background: #ffebee;
    border-color: #d32f2f;
}

.action-btn svg {
    width: 18px;
    height: 18px;
}
.team-btn, .clean-btn, .delete-btn, .refresh-btn  {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
	margin-right: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);	
	border: 0;
	background:url('../img/share-dark.svg');
	background-repeat:no-repeat;
	background-size:contain;
	width:50px;
	height: 50px;
}
.clean-btn {
	background:url('../img/clean-dark.svg');
}
.delete-btn {
	background:url('../img/trash-dark.svg');
}
.refresh-btn {
	background:url('../img/refresh-dark.svg');
}
.team-btn:hover, .clean-btn:hover, .delete-btn:hover, .refresh-btn:hover {
	cursor: pointer;
	transform: scale(1.05);
}
/* Add padding to items container to prevent overlap with footer */
#items-view .container {
    padding-bottom: 0 0 100px 0!important;
	margin: 0
}

/* Drag and Drop Styles */
.list-item[draggable="true"],
.item[draggable="true"] {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.list-item.dragging,
.item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.list-item[draggable="true"]:hover,
.item[draggable="true"]:hover {
    background: var(--bg-primary);
}

/* Drag handle indicator - show on hover */
.list-item[draggable="true"]::before,
.item[draggable="true"]::before {
    /*content: '⋮⋮';*/
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.list-item[draggable="true"]:hover::before,
.item[draggable="true"]:hover::before {
    opacity: 1;
}

/* Adjust padding for drag handle */
.list-item[draggable="true"] .list-info,
.item[draggable="true"] {
    padding-left: 0rem;
}

/* Prevent text selection during drag */
.list-item.dragging *,
.item.dragging * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}
