:root {
  --primary-color: #e63946;
  --secondary-color: #f1faee;
  --accent-color: #a8dadc;
  --dark-color: #1d3557;
  --light-color: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  padding: 20px;
  background-color: #f5f5f5;
  color: #333;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 12px;
  background-color: var(--light-color);
  box-shadow: var(--shadow);
}

.header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--accent-color);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--dark-color);
}

.logo i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

.invoice-info {
  text-align: right;
}

.invoice h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.invoice p {
  margin: 5px 0;
  font-size: 0.9rem;
}

.label {
  font-weight: 600;
  color: var(--dark-color);
}

.input-section {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  justify-content: center;
}

.input-group {
  position: relative;
  flex: 1;
  min-width: 150px;
}

.input-group i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
}

.input-section input {
  padding: 12px 20px 12px 35px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 16px;
  width: 100%;
  transition: all 0.3s;
}

.input-section input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

.btn {
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  border: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-add {
  background-color: var(--dark-color);
  color: white;
}

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

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.table-container {
  overflow-x: auto;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

table th {
  background-color: var(--dark-color);
  color: white;
  padding: 12px 15px;
  text-align: left;
}

table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

table tr:hover {
  background-color: #f9f9f9;
}

.remove-btn {
  padding: 6px 12px;
  border: none;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.remove-btn:hover {
  background-color: #c1121f;
}

.total-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid var(--accent-color);
  text-align: right;
}

.total-amount {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background-color: var(--dark-color);
  color: white;
  padding: 15px 25px;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
}

.total-amount span:first-child {
  font-size: 1rem;
}

footer {
  margin-top: 40px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: #666;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  color: var(--dark-color);
  font-size: 1.2rem;
  transition: all 0.3s;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }
  
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .invoice-info {
    text-align: left;
    width: 100%;
  }
  
  .input-group {
    min-width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  table {
    font-size: 14px;
  }
  
  table th, table td {
    padding: 8px 10px;
  }
}

@media print {
  .no-print {
    display: none;
  }

  body {
    background-color: white;
    padding: 0;
  }
  
  .container {
    box-shadow: none;
    padding: 10px;
  }
  
  .total-amount {
    background-color: transparent;
    color: black;
    border: 2px solid black;
  }
}