body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
	margin: 0px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--secondary-color);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
	box-sizing: border-box;
}

header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--header-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

main {
    flex: 1;
    padding: 2rem 0;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
	margin: 0 auto;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.input-group {
    margin: 5px 10px 5px 10px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
	box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Auth Forms */
.auth-container {
    max-width: 400px;
    margin: 2rem auto;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-muted);
}

/* QR Scanner */
#qr-reader {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

/* Label List */
.label-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin: 0px 0px 10px 0px;
}

.label-item:last-child {
    border-bottom: none;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-unused {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

.label-button-canvas {
    display: flex;
    gap: 0.5rem;
}

.print-checkbox {
    width: 30px;
    margin: 20px;
    height: 19px;
}

.print-color-bullet {
    width: 40px;
    height: 20px;
    border-radius: 10px;
}

.btn-sm {
    -webkit-touch-callout: none;
    /* Blocca menu iOS */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    -webkit-tap-highlight-color: transparent;
    /* Rimuove flash grigio Android */
}

.label-data-base{
	width: 100%;
	display: flex;
    flex-wrap: wrap;
	justify-content: space-between;
}

.item-title{
	width: 75%;
}

.item-color{
	width: 18%;
}

.item-description{
	width: 100%;
}

input[type="color"] {
    -webkit-appearance: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 50px;      /* modifica come preferisci */
    height: 50px;     /* modifica come preferisci */
    cursor: pointer;
	width: 100%;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
}

.location-box{
	display: flex;
}

.location-box .input-group{
	width: 100%;
}

.geolocation{
    height: 45px;
    width: fit-content;
    margin-top: 35px;
	margin-left: 5px;
}

#view-profile-billing{
	margin: 20px;
}

#global-search-container{
	flex: 1; 
	max-width: 500px; 
	margin: 0 20px; 
	display: flex; 
	justify-content: space-between;
}

#global-search-input{
	width: calc(100% - 130px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
}



@media only screen and (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }

    .logo {
        width: 100%;
    }

    .nav-links {
        position: absolute;
        right: 10px;
        top: 11px;
    }

    #global-search-container {
        margin: 12px 0px !important;

    }

    .dashboard-header,
    .dashboard-header * {
        font-size: 0px !important;
    }

    .label-data-caption {
        width: 100%;
    }

    .label-item {
        flex-wrap: wrap;
    }

    .label-button-canvas {
        width: 100%;
        justify-content: flex-end;
    }
	
	#view-profile-billing{
			margin: 0px;
			width: 100%;
			height: 100%;	
	}
	
	.container {
		padding: 0 10px;
		width: 100%;
	}
	
	.stat-card{
        width: 100%;
        box-sizing: border-box;
	}
	
	.card{
		padding: 10px;
		border: unset !important;
		box-shadow: unset;
	}
}