/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn:hover {
    background-color: #0069d9;
}

.btn.primary {
    background-color: #28a745;
}

.btn.primary:hover {
    background-color: #218838;
}

/* Status badges */
.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status.draft {
    background-color: #ffc107;
    color: #212529;
}

.status.invoice {
    background-color: #28a745;
    color: white;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Document styling */
.document {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.document header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.document-info {
    text-align: right;
}

.client-info {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.items {
    margin-bottom: 20px;
}

.items th {
    background-color: #f8f9fa;
}

.text-right {
    text-align: right;
}

.terms {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.actions {
    margin-top: 30px;
}

/* Item rows */
.item-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-end;
}

.item-row .form-group {
    flex: 1;
}

.remove-item {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 8px;
}

.remove-item:hover {
    background-color: #c82333;
}

/* Custom hover for Delete button */
a.btn.delete-btn:hover,
button.btn.delete-btn:hover {
    background-color: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important;
}

/* Custom hover for Edit button */
a.btn.edit-btn:hover,
button.btn.edit-btn:hover {
    background-color: #ffc107 !important;
    color: #212529 !important;
    border-color: #ffc107 !important;
}

/* Navbar link styles for visibility */
.navbar-dark .navbar-nav .nav-link {
    color: #f8f9fa !important;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffc107 !important;
}