/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.login-container {
    max-width: 450px;
    margin-top: 50px;
}

/* Header */
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.header-main h1 {
    color: #0056b3;
    margin: 0;
    font-size: 24px;
}

/* Card Styles */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 25px;
}

.card h2, .card h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 18px;
}

/* Layout Columns */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.column {
    flex: 1;
    min-width: 300px;
}

.column-left {
    flex-basis: 60%;
}

.column-right {
    flex-basis: 35%;
}


/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
    transition: border-color 0.2s;
}

.form-group input[type="file"] {
    padding: 8px;
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 22px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-logout {
    background-color: #dc3545;
}

.btn-logout:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

/* Alert/Message Styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Tables */
.results-table, .history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.results-table th, .history-table th,
.results-table td, .history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.results-table th, .history-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.status-success td {
    background-color: #e9f7ef;
}

.status-error td {
    background-color: #fbe9e7;
}

/* Invoice View Specific */
.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.invoice-parties {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.party-details {
    width: 48%;
}

.party-details h3 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.resource-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}