/*invoice*/
.invoice-box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border: 2px solid #ccc;
        border-radius: 8px;
        padding: 0px;
        margin-bottom: 0px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        background-color:#F9FAFB;
    }
	
	.item-box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
		
		 background-color: #E6F0FA; /* Soft blue tint */
    border: 1px solid #B0BEC5;
    border-radius: 8px;
    padding: 10px;
	
	
    }

    .invoice-box input[type="text"],
    .invoice-box input[type="date"] {
        padding: 8px 10px;
        margin: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        width: calc(33% - 24px); /* 3 fields per row */
        min-width: 200px;
    }

    @media screen and (max-width: 768px) {
        .invoice-box input[type="text"],
        .invoice-box input[type="date"] {
            width: calc(100% - 24px); /* Stack inputs on small screens */
        }
    }
	
    body {
        font-family: Arial, sans-serif;
        background-color: #f8f8f8;
        margin: 0;
        padding: 2px;
    }

  hpagetitle2 {
        background-color: #005b9f;
        color: white;
        padding: 1px;
        margin: -20px -20px 20px -20px;
        text-align: center;
    }
	
    h2 {
        background-color: #005b9f;
        color: white;
        padding: 15px;
        margin: -20px -20px 20px -20px;
        text-align: center;
    }

    form {	
        background-color: white;
        padding: 2px;
        border-radius: 8px;
        box-shadow: 0 0 8px rgba(0,0,0,0.1);
    }

    input[type="text"],
    input[type="number"],
    input[type="date"],
    select {
        width: 180px;
        padding: 6px 8px;
        margin: 5px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    select {
        width: 200px;
    }

    button {
        background-color: #005792;
        color: white;
        border: none;
        padding: 8px 14px;
        margin-top: 10px;
        cursor: pointer;
        border-radius: 4px;
        transition: 0.2s;
    }

    button:hover {
        background-color: #218838;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
        background-color: #fff;
    }

    th, td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: center;
        font-size: 14px;
    }

    th {
        background-color: #007bff;
        color: white;
    }

    tr:nth-child(even) {
        background-color: #f2f2f2;
    }
    .total-container {
        margin-top: 20px;
        font-size: 18px;
        font-weight: bold;
        text-align: right;
    }

    .delete-btn {
        background-color: #dc3545;
        border: none;
        color: white;
        padding: 5px 10px;
        cursor: pointer;
        border-radius: 4px;
    }

    .delete-btn:hover {
        background-color: #c82333;
    }
	
	
	.popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: fadeOut 4s ease-in-out forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; display: none; }
}


.btn-primary {
    background-color: #005792;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0075b3;
}


/*category*/

  h3 {
        margin-bottom: 10px;
		color: white;
		 background-color: #003F5C   ;
		 font-size: 20px;
		 text-align : center;

    }

	.filter-form {
        background: #fff;
        padding: 2px;
        margin-bottom: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        align-items: center;
    }

    .filter-form label {
        font-weight: bold;
        margin-right: 5px;
    }

    .filter-form select, .filter-form input[type="submit"] {
        padding: 6px 10px;
        font-size: 14px;
    }
	
/*view hscode*/
	
	
	.pagination {
        margin-top: 20px;
        font-weight: bold;
    }
    .pagination a {
        padding: 5px 10px;
        text-decoration: none;
        margin: 0 5px;
        background-color: #007bff;
        color: white;
        border-radius: 4px;
    }
    .pagination a:hover {
        background-color: #0056b3;
    }
	
	
	.readonly-field {
        background-color: #f0f0f0;
    }
	
	
	 hlogin {
        color: white;
        padding: 15px;
        text-align: center;		
		font-weight: bold;
		margin-bottom: 20px;
        font-size: 20px;
	    color: #333;
			
			
    }
	
	  body.bodylogin {
            font-family: Arial, sans-serif;
            background: #f0f2f5;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
        .login-panel {
            background-color: #005792;
            padding: 30px 40px;
            border: 1px solid #ccc;
            border-radius: 12px;
            box-shadow: 0 0 50px rgba(33,11,2,5.1);
            width: 320px;
            text-align: center;
			color: white;
        }
		
		.login-panel1 {
		border: none !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
    background: transparent; /* Optional */

		}
        .login-panel img {
            width: 80px;
            margin-bottom: 15px;
			 border: 2px solid #ddd;
			border-radius: 12px; /* Adjust the value as needed */
			box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
        }
        .login-panel h2 {
            margin-bottom: 20px;
            color: #333;
        }
        .login-panel input[type="text"],
        .login-panel input[type="password"] {
            width: 100%;
            padding: 10px;
            margin: 10px 0;
            border: 1px solid #aaa;
            border-radius: 6px;
        }
        .login-panel input[type="submit"] {
            width: 100%;
            background: #007BFF;
            color: white;
            padding: 10px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
        }
        .login-panel input[type="submit"]:hover {
            background: #0056b3;
        }
        .error {
            color: red;
            margin-top: 10px;
        }
		
		
		.form-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1px 20px;
    max-width: 100%;
    margin: auto;
    font-family: Arial, sans-serif;
}

.form-grid label {
    text-align: right;
    padding-top: 1px;
    font-weight: bold;
}

.form-grid input[type="text"],
.form-grid input[type="email"] {
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
}

.form-grid input[type="submit"] {
    grid-column: 2; /* align under inputs */
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-grid input[type="submit"]:hover {
    background-color: #0056b3;
}




   body.invoice_body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #eaf7fb;
            margin: 40px;
            color: #000;
        }

        h2.invoice_title {
            margin: 0;
            font-size: 32px;
            font-weight: bold;
        }

        .invoice_header table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }

        .invoice_logo img {
            max-height: 60px;
            margin-bottom: 10px;
        }

        .invoice_companyinfo {
            font-size: 14px;
            line-height: 1.6;
        }

		.invoice_left { text-align: left; }	
        .invoice_right { text-align: right; }
        .invoice_center { text-align: center; }

        .invoice_customer {
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        table.invoice_table {
            width: 100%;
            border-collapse: collapse;
            background: #d9edf7;
            font-size: 14px;
            margin-bottom: 15px;
        }

        table.invoice_table th {
            padding: 10px;
            text-align: left;
            background-color: #d9edf7;
            font-weight: bold;
            border: 1px solid #000;
        }

        table.invoice_table td {
            padding: 10px;
            border: 1px solid #000;
        }

        .invoice_noborder {
            border: none !important;
            background: none !important;
        }

        table.invoice_summary td {
            background-color: #eaf7fb !important;
            font-weight: bold;
			width: 60%;
        }

        table.invoice_summary tr.invoice_total td {
            background-color: #d1ecf1 !important;
            font-size: 16px;
            font-weight: bold;
			width: 60%;
        }

        .invoice_printbtn {
            float: right;
            margin-bottom: 20px;
            background: #007bff;
            color: white;
            border: none;
            padding: 8px 16px;
            font-size: 14px;
            cursor: pointer;
            border-radius: 4px;
        }

        .invoice_printbtn i { margin-right: 5px; }

        /* PRINT ONLY INVOICE AREA */
        @media print {
            body * {
                visibility: hidden;
            }
            #print_invoice, #print_invoice * {
                visibility: visible;
            }
            #print_invoice {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
            }
            .invoice_printbtn {
                display: none !important;
            }
        }



button,
input[type="button"],
input[type="submit"] {
    background: #3498db;         /* Blue */
    color: #fff;
    padding: 10px 18px;
    margin: 8px 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background: #217dbb;         /* Darker blue on hover */
    transform: translateY(-2px); /* Small lift effect */
}

table td button {
    background: #e74c3c;   /* Red */
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    font-size: 13px;
    transition: background 0.3s, transform 0.2s;
}

table td button:hover {
    background: #c0392b;   /* Dark red */
    transform: scale(1.05);
}





/* 3 inputs in one line */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;   /* allows wrapping on small screens */
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;  /* keeps inputs from shrinking too much */
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
}


form input[type="text"],
form input[type="date"],
form select {
    width: 250px;
    padding: 6px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
}


.inputrow {
  display: flex;
  justify-content: space-between; /* spread items */
  gap: 20px; /* spacing between input groups */
}

.inputbox {
  flex: 1;                  /* equal width */
  display: flex;            /* for label + input alignment */
  flex-direction: column;   /* label on top, input below */
  padding: 0px;
}

.inputbox label {
  text-align: left;         /* label aligned left */
  margin-bottom: 5px;       /* spacing under label */
  font-weight: bold;
}

.inputbox input {
  text-align: left;         /* text inside input aligned left */
  padding: 6px;             /* nice spacing inside */
  width: 100%;              /* stretch to full width */
  box-sizing: border-box;   /* prevent overflow */
}

.inputbox btn {
  text-align: left;         /* text inside input aligned left */
  padding: 6px;             /* nice spacing inside */
  width: 100%;              /* stretch to full width */
  box-sizing: border-box;   /* prevent overflow */
}



/* 4 objects in one line */
.item-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
  gap: 16px;                             /* space between fields */
}

/* label + input styling */
.item-field label {
  display: block;        /* label above input */
  margin-bottom: 6px;
  font-weight: 600;
  text-align: left;      /* left-align label text */
}

.item-field input,
.item-field select,
.item-field textarea 
.item-field number
{
  width: 100%;           /* stretch to full column */
  padding: 8px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  box-sizing: border-box;
  text-align: left;      /* left-align input text */
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .item-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .item-row { grid-template-columns: 1fr; }
}


.login-panel img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 
        4px 4px 12px rgba(0,0,0,0.2),
        -4px -4px 12px rgba(255,255,255,0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.login-panel img:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 
        6px 6px 15px rgba(0,0,0,0.25),
        -6px -6px 15px rgba(255,255,255,0.8);
}

.login-panel img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 
        4px 4px 12px rgba(0,0,0,0.2),
        -4px -4px 12px rgba(255,255,255,0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.login-panel img:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 
        6px 6px 15px rgba(0,0,0,0.25),
        -6px -6px 15px rgba(255,255,255,0.8);
}

button {
  background: #3498db;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;  /* 👈 animation trigger */
}

button:hover {
  transform: scale(1.1);  /* grows */
  background: #2980b9;
}

.login-panel img {
  width: 140px;
  height: 140px;
  animation: spin 6s linear infinite; /* 👈 continuous animation */
}


.dash-panel img {
 
 text-align: center;
 margin-bottom: 20px;

 width: 140px;
  border: 2px solid #ddd;
  border-radius: 12px; /* Adjust the value as needed */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  
  
 
 
}



@keyframes spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}


.animated-text {
      font-size: 20px;
      font-weight: bold;
      font-family: "Segoe UI", sans-serif;
      color: #3498db;
      text-transform: uppercase;
      letter-spacing: 3px;
      background: linear-gradient(90deg, #3498db, #9b59b6, #e67e22, #2ecc71);
      background-size: 400%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: gradientmove 6s ease infinite, fadeInUp 2s ease;
    }

    /* Gradient animation */
    @keyframes gradientmove {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    /* Smooth entrance */
    @keyframes fadeInUp {
      0% {
        opacity: 0;
        transform: translateY(30px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }



.dashboard1
{
	flex:1; 
    background: linear-gradient(135deg, #fdfdfd, #fafafa);
    padding:20px; 
    border-radius:16px; 
    box-shadow:0 19px 25px rgba(0,0,0,0.08); 
    max-width:400px; 
    overflow:auto;
    transition: all 0.3s ease-in-out;
"
onmouseover="this.style.boxShadow='0 10px 25px rgba(0,0,0,0.15)'; this.style.transform='translateY(-3px)';"
onmouseout="this.style.boxShadow='0 6px 15px rgba(0,0,0,0.08)'; this.style.transform='none';
}	




