/* Base styles */
@font-face {
    font-family: 'LufgaRegular';
    src: url('asset/fonts/lufga-cufonfonts/LufgaRegular.woff2') format('woff2'),
         url('asset/fonts/lufga-cufonfonts/LufgaRegular.woff') format('woff'),
         url('asset/fonts/lufga-cufonfonts/LufgaRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'LufgaRegular', sans-serif;
}
html, body {
    /* Prevents iOS and Android from artificially inflating font sizes */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    /*background-color: #f9fafb;*/
	/* background: rgb(177,192,219);
	background: radial-gradient(circle, rgba(177,192,219,1) 23%, rgba(218,218,218,1) 77%); */
	/* background: linear-gradient(to bottom right, #f8fafc 0%, #ffffff 50%, #f8fafc 100%); */
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.contr {
	background: #ffffff30;
    border-radius: 20px;
    padding: 20px;
}
a { color: inherit; 
text-decoration:none;} 
/* Header stays at the top */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	
    border-bottom: 1px solid #e2e8f0;
  
   
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
	color:black;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background-color: #6f42c1;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Hamburger menu for mobile */
.menu-icon {
    display: none;
    color: black;
    font-size: 28px;
    cursor: pointer;
}

/* Content wrapper to place sidebar below header */
.content-wrapper {
    display: flex;
    flex-grow: 1;
	    background: linear-gradient(to bottom right, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
}

/* Sidebar with just icons */
.sidebar {
    width: 60px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    
    background-color: #ffffff;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, visibility 0.3s ease, opacity 0.3s ease;
    visibility: visible;
    opacity: 1;

}
.device-info {
    background-color: #007bff; /* Matching the button color */
    color: #ffffff; /* White text */
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: inline-block;
    font-weight: bold;
}
.add-customer-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.add-customer-btn:hover {
    background-color: #45a049;
}


/* Sidebar hidden on mobile by default */
@media (max-width: 1290px) {
    .sidebar {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        transform: translateY(-100%);
        z-index: 1000;
        visibility: hidden;
        opacity: 0;
    }

    /* Sidebar becomes visible when the menu is toggled */
    .sidebar.show {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }

    .menu-icon {
        display: block;
    }
}

.nav ul {
	justify-content:center;
	align-items:center;
    list-style: none;
    display: flex;
	
    flex-direction: column;
    
}

.nav ul li {
  width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    color: black;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.nav ul li:hover {
    color: #1A1A1A;
}

/* Main content section */
.main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
	background: linear-gradient(to bottom right, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
	    max-width: 1600px;
    margin: 0 auto;
    min-height: 100vh;

}

/* Adjust table layout for mobile */
.clients-section {
    background-color: #ffffffc7;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
	max-width:100%;
}

.clients-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.clients-title h1 {
    font-size: 24px;
    font-weight: 600;
}

.clients-title p {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.actions {
    display: flex;
    gap: 10px;
}

/* Export button styled as white with outline */
.export-btn {
    background-color: #cacaca00;
    color: #000000;
    padding: 10px;
    width: 50px;
    border: 1px solid #cacaca;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    height: 50px;
}

/* Add New button */
.add-btn {
    background-color: #00000000;
    color: #000000;
    padding: 10px 20px;
    border: 1px solid #cacaca;
    border-radius: 35px;
    cursor: pointer;
}

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filters button {
    background-color: #f1f1f1;
    border: none;
    padding: 10px 20px;
    border-radius: 35px;
    font-weight: 600;
    cursor: pointer;
}

.filters button.active {
    background-color: #ffffff;
    color: black;
	border: 1px solid;
	 border-radius: 35px;
}

.client-search {
    margin-bottom: 20px;
}

.client-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cacaca;
    border-radius: 35px;
	background:#ffffff00;
}

/* Table styles */
.client-table.desktop-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.client-table th, .client-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
    text-align: left;
}

.client-table th {
    font-weight: 600;
	
}

/* Mobile Table (hidden on larger screens) */
.mobile-table {
    display: none;
}

.mobile-client-card {
   /*  background: white;
    padding: 15px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    border-radius: 8px;
    
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mobile-client-header {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
	display: flex;
    justify-content: space-between;
}

.mobile-client-details div {
    margin-bottom: 5px;
    font-size: 12px;
    color: #666;
}

.mobile-client-actions {
       display: flex;
    justify-content: space-between;
    gap: 5px;  /* Add space between the buttons */
    margin-top: 10px;

}

.mobile-client-actions button {
    background-color: #6f42c100;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    /* width: 45px; */
    height: 50px;
    font-size: 16px;
    cursor: pointer;
	display:flex;
	gap:6px;
	justify-content:center;
	align-items:center;
	font-weight:bold;
}
/* Warranty Icons */
.warranty-valid {
    color: green;
    font-size: 20px;
}

.warranty-expired {
    color: red;
    font-size: 20px;
}
.whatsapp-icon {
    color: #25D366; /* WhatsApp green */
    margin-left: 5px; /* Space between the phone number and the icon */
    font-size: 16px; /* Adjust size */
}

.whatsapp-link {
    text-decoration: none; /* Remove underline */
}
/* Client and Address Info Alignment */
.client-info {
    display: flex;
    flex-direction: column;
    align-items: left;
}

.client-info strong {
    font-size: 16px;
}

.client-info  span {
    font-size: 13px;
    color: #888;
    text-align: left;
}

/* Action Buttons */
.action-btn {
   background:#ffffff00;
    color: black;
    border: 1px solid #cacaca;
    border-radius: 20px;
    padding: 10px;
    margin-right: 5px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.action-btn i {
    font-size: 16px;
}

/* Pagination Buttons */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prev-btn, .next-btn {
    background-color: #ffffff00;
    color: black;
    border: 1px solid #cacaca;
    border-radius: 25px;
    padding: 10px;
    margin-right: 5px;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}
.service-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    color: white;
    white-space: nowrap;
}

/* Color styles for different service types */
.pill-green {
    background-color: #28a745; /* Green for PIF */
}

.pill-orange {
    background-color: #fd7e14; /* Orange for VTP */
}

.pill-blue {
    background-color: #007bff; /* Blue for Service */
}

/* Ensure the icon inside the pill is properly aligned */
.service-pill i {
    font-size: 16px;
}


 .mobile-sticky-footer {
	 display:none;
 }
/*sssss*/
.form-section {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
	
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* Two equal columns */
    gap: 20px;
    margin-bottom: 15px;
}

.form-column {
    width: 100%;  /* Ensure columns fill the grid */
}

.form-section label {
    font-weight: 600;
    margin-bottom: 5px;
}

.form-section input.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 35px;
    margin-bottom: 15px;
}

/* Full width for elements (if needed) */
.form-section .full-width {
    grid-column: span 2; /* Make full-width elements span both columns */
}

/* Media Queries for mobile view */
.form-row-full {
    width: 100%;
    margin-bottom: 20px;
}
 
		   /* Center and size the canvas */
        .signature-container {
            text-align: center;
            margin-top: 20px;
        }

        .signature-canvas {
            border: 1px solid #000;
            width: 100%;
max-width:350px;			/* Set width */
            height: 200px; /* Set height */
        }
.taller-input {
     height: 100px; /* Adjust height as necessary */
    width: 100%; /* Full width */
    resize: none; /* Disable resizing */
}

.signature-buttons {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.btn-clear {
    width: 100%;
    padding: 12px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* Style to make sure the signature field stretches the full width */
.form-row-full label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}
.radio-group {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;     /* Centers vertically */
    gap: 15px; /* Adjust the space between the radio buttons */
    height: 100%; /* Ensures that the checkboxes are vertically centered in their column */
}

.radio-group label {
    display: flex;
    align-items: center;
    font-size: 14px; /* Adjust the font size as needed */
}

.radio-group input[type="radio"] {
    margin-right: 5px; /* Adds a little space between the radio button and its label */
}

.filters button a,
.actions button a,
.pagination a {
    text-decoration: none;   /* Remove underline */
    color: inherit;          /* Keep the color inherited from the button */
}
@media (max-width: 768px) {
    /* Hide desktop table and show mobile table */
    .desktop-table {
        display: none;
    }
    .mobile-table {
        display: block;
    }

    .mobile-client-header {
        font-size: 16px;
    }

    .mobile-client-actions button {
        width: 100%;
        flex-grow: 1;
        height: 40px;
    }
  .actions {
    display: none;
   
}
   .mobile-sticky-footer {
        display: flex;
        justify-content: space-between;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 10px;
        z-index: 1000;
        transition: bottom 0.3s ease-in-out; /* Smooth transition for show/hide */
    }

    .mobile-sticky-footer .add-btn {
       background-color: #6f42c100;
        color: #000000;
        border: 1px solid #cacaca;
        padding: 10px;
        border-radius: 25px;
        width: 32%;
        text-align: center;
        cursor: pointer;
        font-size: 16px;
  }
   .form-row {
        grid-template-columns: repeat(2, 1fr);  /* Keep two equal columns on mobile */
        gap: 10px;  /* Reduce gap for mobile */
    }
.canvas-wrapper {
    width: 100%; /* Set the desired width */
    display: flex;
    justify-content: center;
}
  
}
.add-customer-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.add-customer-btn:hover {
    background-color: #45a049;
}
/* --- FIX PENTRU INPUT DATE PE iOS (iPhone/iPad) --- */
input[type="date"], 
input[type="date"].modern-input {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    display: block;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    /* Un min-height ajută ca Safari să nu "turtească" input-ul când eliminăm appearance-ul */
    min-height: 42px; 
}

/* Aliniază corect textul datei în interiorul elementului nativ pe iOS */
input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
    margin: 0;
}

/* Elimină padding-ul intern ciudat pe care îl adaugă Safari uneori în stânga */
input[type="date"]::-webkit-datetime-edit {
    padding: 0;
}

/* --- GLOBAL MOBILE FOOTER FIX --- */
@media (max-width: 1290px) {
    .main {
        /* Forțează un spațiu gol generos la finalul paginii pe mobil */
        padding-bottom: 110px !important; 
    }
    
    body {
        /* Adaugă spațiu suplimentar pentru telefoanele moderne (ex: bara de home de la iPhone) */
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
}

        .page-header-modern {
            display: flex; 
            align-items: center; 
            margin-bottom: 30px; 
            flex-wrap: wrap; 
            gap: 15px;
        }
        .btn-back-modern { 
            display: flex; align-items: center; justify-content: center; 
            width: 44px; height: 44px; background: #ffffff; 
            border: 1px solid #e2e8f0; border-radius: 12px; color: var(--text-light); 
            text-decoration: none; font-size: 1.2rem; transition: all 0.2s ease; 
            box-shadow: 0 2px 4px rgba(0,0,0,0.02); flex-shrink: 0; 
        }
        .btn-back-modern:hover { 
            background: #f8fafc; color: var(--primary-dark); border-color: #cbd5e1; transform: translateX(-3px); 
        }
/* --- PREVENT IOS SAFARI AUTO-ZOOM ON INPUTS --- */
@media screen and (max-width: 768px) {
    input, 
    select, 
    textarea, 
    .modern-input, 
    .form-control {
        font-size: 16px !important;
    }
	
	.logo span {
		display:none;
	}
	
}