* {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     /* Global override for Bootstrap rounded utility classes */
     border-radius: 0 !important; 
 }

 @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Source+Sans+Pro:wght@400;600&display=swap');

 :root {
     --primary: #2c3e50;
     --accent: #e74c3c;
     --light-bg: #f8f9fa;
     --border: #e0e0e0;
     --text: #333;
     --text-light: #666;
     --success: #27ae60;
 }

 body {
     font-family: 'Source Sans Pro', sans-serif;
     background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
     color: var(--text);
     min-height: 100vh;
     padding: 20px;
 }

 .container {
     max-width: 1400px;
     margin: 0 auto;
 }

 header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 40px;
     background: white;
     padding: 30px;
     border-radius: 0; /* Sharp Edges */
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
 }

 h1 {
     font-family: 'Playfair Display', serif;
     font-size: 32px;
     color: var(--primary);
 }

 .header-actions {
     display: flex;
     gap: 12px;
     flex-wrap: wrap;
 }

 .tabs {
     display: flex;
     gap: 8px;
     margin-bottom: 30px;
     background: white;
     padding: 16px;
     border-radius: 0; /* Sharp Edges */
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
 }

 .tab-btn {
     padding: 10px 20px;
     border: none;
     background: var(--light-bg);
     color: var(--text);
     cursor: pointer;
     border-radius: 0; /* Sharp Edges */
     font-weight: 600;
     transition: all 0.3s ease;
     font-size: 14px;
 }

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

 .tab-btn:hover {
     background: var(--text-light);
     color: white;
 }

 .tab-content {
     display: none;
 }

 .tab-content.active {
     display: block;
     animation: fadeIn 0.3s ease;
 }

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

 button {
     padding: 12px 24px;
     border: none;
     border-radius: 0; /* Sharp Edges */
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
     font-size: 14px;
 }

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

 .btn-primary:hover {
     background: #1a252f;
     transform: translateY(-2px);
     box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
 }

 .btn-secondary {
     background: var(--accent);
     color: white;
 }

 .btn-secondary:hover {
     background: #c0392b;
     transform: translateY(-2px);
 }

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

 .btn-success:hover {
     background: #229954;
 }

 .btn-small {
     padding: 8px 12px;
     font-size: 12px;
 }

 .btn-danger {
     background: #e74c3c;
     color: white;
     padding: 6px 12px;
     font-size: 12px;
 }

 .btn-danger:hover {
     background: #c0392b;
 }

 /* Form Styles */
 .form-container {
     background: white;
     padding: 30px;
     border-radius: 0; /* Sharp Edges */
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
     margin-bottom: 30px;
 }

 .form-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 20px;
     margin-bottom: 20px;
 }

 .form-group {
     display: flex;
     flex-direction: column;
 }

 label {
     margin-bottom: 8px;
     font-weight: 600;
     color: var(--text);
     font-size: 14px;
 }

 input[type="text"],
 input[type="email"],
 input[type="date"],
 input[type="number"],
 textarea,
 select {
     padding: 12px;
     border: 1px solid var(--border);
     border-radius: 0; /* Sharp Edges */
     font-family: inherit;
     font-size: 14px;
     transition: border-color 0.3s ease;
 }

 input[type="text"]:focus,
 input[type="email"]:focus,
 input[type="date"]:focus,
 input[type="number"]:focus,
 textarea:focus,
 select:focus {
     outline: none;
     border-color: var(--primary);
     box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
 }

 textarea {
     resize: vertical;
     min-height: 100px;
 }

 .form-row {
     display: grid;
     grid-template-columns: 1fr 1fr 1fr auto;
     gap: 15px;
     align-items: flex-end;
     margin-bottom: 15px;
 }

 .form-row .form-group {
     margin-bottom: 0;
 }

 .items-section {
     margin-top: 30px;
     padding-top: 30px;
     border-top: 2px solid var(--border);
 }

 .items-list {
     display: flex;
     flex-direction: column;
     gap: 12px;
     margin-bottom: 20px;
 }

 .item-row {
     display: grid;
     grid-template-columns: 2fr 1fr 1fr 1fr auto;
     gap: 12px;
     align-items: flex-end;
     background: var(--light-bg);
     padding: 12px;
     border-radius: 0; /* Sharp Edges */
 }

 .item-row input {
     padding: 10px;
     font-size: 13px;
 }

 /* Invoice Preview */
 .invoice-box {
     background: white;
     padding: 40px;
     border-radius: 0; /* Sharp Edges */
     box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
     max-width: 900px;
     margin: 0 auto 30px;
     border: 1px solid var(--border);
 }

 .invoice-header {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 40px;
     margin-bottom: 40px;
     padding-bottom: 30px;
     border-bottom: 2px solid var(--border);
 }

 .invoice-title {
     font-family: 'Playfair Display', serif;
     font-size: 48px;
     font-weight: 700;
     color: var(--primary);
 }

 .invoice-company {
     font-weight: 600;
     margin-bottom: 15px;
     color: var(--text);
 }

 .invoice-meta {
     display: flex;
     flex-direction: column;
     gap: 8px;
     font-size: 13px;
     color: var(--text-light);
 }

 .invoice-meta strong {
     color: var(--text);
     font-weight: 600;
 }

 .billed-to {
     font-weight: 600;
     margin-bottom: 8px;
 }

 .due-date-label {
     color: var(--accent);
     font-weight: 700;
 }

 .invoice-table {
     width: 100%;
     border-collapse: collapse;
     margin-bottom: 30px;
 }

 .invoice-table th {
     background: var(--primary);
     color: white;
     padding: 15px;
     text-align: left;
     font-weight: 600;
     font-size: 13px;
     border-radius: 0; /* Sharp Edges */
 }

 .invoice-table td {
     padding: 15px;
     border-bottom: 1px solid var(--border);
     font-size: 14px;
 }

 .invoice-table tr:last-child td {
     border-bottom: none;
 }

 .amount {
     text-align: right;
     font-weight: 600;
 }

 .invoice-total {
     display: flex;
     justify-content: flex-end;
     gap: 40px;
     padding-top: 20px;
     border-top: 2px solid var(--primary);
     margin-bottom: 30px;
 }

 .total-item {
     display: flex;
     gap: 15px;
     min-width: 250px;
     justify-content: space-between;
 }

 .total-label {
     font-weight: 600;
 }

 .total-amount {
     font-weight: 700;
     color: var(--primary);
     min-width: 100px;
     text-align: right;
 }

 .bank-details-section {
     border: 2px solid var(--accent);
     border-radius: 0; /* Sharp Edges */
     padding: 20px;
     background: rgba(231, 76, 60, 0.02);
 }

 .bank-details-header {
     font-weight: 700;
     margin-bottom: 15px;
     color: var(--accent);
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .edit-mode-toggle {
     font-size: 12px;
     padding: 4px 8px;
 }

 .editable-content {
     min-height: 100px;
     padding: 15px;
     border: 1px dashed var(--border);
     border-radius: 0; /* Sharp Edges */
     background: white;
     line-height: 1.6;
     font-size: 13px;
     color: var(--text);
 }

 .editable-content:focus {
     outline: 2px solid var(--accent);
     outline-offset: -1px;
 }

 .editor-toolbar {
     display: flex;
     gap: 8px;
     margin-bottom: 12px;
     flex-wrap: wrap;
     padding: 12px;
     background: var(--light-bg);
     border-radius: 0; /* Sharp Edges */
 }

 .format-btn {
     padding: 8px 12px;
     background: white;
     border: 1px solid var(--border);
     border-radius: 0; /* Sharp Edges */
     cursor: pointer;
     font-weight: 600;
     font-size: 12px;
     transition: all 0.2s ease;
 }

 .format-btn:hover {
     background: var(--primary);
     color: white;
     border-color: var(--primary);
 }

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

 /* Invoices List */
 .invoices-table {
     width: 100%;
     border-collapse: collapse;
     background: white;
     border-radius: 0; /* Sharp Edges */
     overflow: hidden;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
 }

 .invoices-table th {
     background: var(--primary);
     color: white;
     padding: 15px;
     text-align: left;
     font-weight: 600;
     font-size: 13px;
 }

 .invoices-table td {
     padding: 15px;
     border-bottom: 1px solid var(--border);
     font-size: 14px;
 }

 .invoices-table tr:hover {
     background: var(--light-bg);
 }

 .invoice-number {
     font-weight: 700;
     color: var(--primary);
 }

 .actions {
     display: flex;
     gap: 8px;
 }

 /* Modals */
 .modal {
     display: none;
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.5);
     z-index: 1000;
     align-items: center;
     justify-content: center;
 }

 .modal.active {
     display: flex;
 }

 .modal-content {
     background: white;
     padding: 30px;
     border-radius: 0; /* Sharp Edges */
     max-width: 500px;
     width: 90%;
     box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
     animation: slideUp 0.3s ease;
 }

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

 .modal-header {
     font-size: 20px;
     font-weight: 700;
     margin-bottom: 20px;
     color: var(--primary);
 }

 .modal-actions {
     display: flex;
     gap: 12px;
     margin-top: 20px;
     justify-content: flex-end;
 }

 /* Stats */
 .stats-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
     gap: 20px;
     margin-bottom: 30px;
 }

 .stat-card {
     background: white;
     padding: 20px;
     border-radius: 0; /* Sharp Edges */
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
     border-left: 4px solid var(--primary);
 }

 .stat-label {
     font-size: 12px;
     color: var(--text-light);
     margin-bottom: 8px;
     text-transform: uppercase;
     font-weight: 600;
 }

 .stat-value {
     font-size: 28px;
     font-weight: 700;
     color: var(--primary);
 }

 .success-message {
     background: rgba(39, 174, 96, 0.1);
     border-left: 4px solid var(--success);
     color: #27ae60;
     padding: 15px;
     border-radius: 0; /* Sharp Edges */
     margin-bottom: 20px;
     animation: slideDown 0.3s ease;
 }

 .currency-search-input {
     width: 100%;
     padding: 10px 12px;
     margin-bottom: 8px;
     border: 1px solid #ddd;
     border-radius: 0; /* Sharp Edges */
     font-size: 14px;
     font-family: inherit;
 }

 .currency-select {
     width: 100%;
     padding: 10px 12px;
     border: 1px solid #ddd;
     border-radius: 0; /* Sharp Edges */
     font-size: 14px;
     font-family: inherit;
     background-color: white;
     cursor: pointer;
 }

  .file-input {
     display: none;
 }
