/* Base Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 5px;  
    
}

/* Global Typography and Input Styles */
label {
    display: block;
    margin-bottom: 5px;
}

input, select {
    display: block;
    width: 100%;
    height: 40px;
    padding: 5px;
    margin-bottom: 15px;
    border: 2px solid blue;
    border-radius: 4px;
}

/* Form Control Styles */
.form-control {
    width: 98%;
    height: calc(2rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}


/* Specific Button Types */
.btn {
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-filter {
    background-color: #4CAF50;
    color: white;
}

.btn-filter:hover {
    background-color: #45a049;
}

.btn-reset {
    background-color: #f44336;
    color: white;
}

.btn-reset:hover {
    background-color: #d32f2f;
}

.btn-transaction {
    background-color: #2196F3;
    color: white;
}

.btn-transaction:hover {
    background-color: #1976D2;
}

/* Checkbox and Radio Styles */
input[type="checkbox"],
input[type="radio"] {
    width: 1rem;
    height: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    cursor: pointer;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* File Input Styles */
.file-input-wrapper {
    position: relative;
    display: inline-block;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-input-wrapper label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #2563eb;
    color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.file-input-wrapper label:hover {
    background-color: #1d4ed8;
}

.file-name {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

/* Table Styles */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* Filter Container Styles */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
}

.input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.input-row > div {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button-row button {
    flex-grow: 1;
}




.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .input-row,
    .button-row {
        flex-direction: column;
    }
}

/* Utility Classes */
.inactive {
    opacity: 0.3;

}

.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.action-buttons img {
    cursor: pointer;
    width: 30px;
    /* Updated from 16px to 30px */
    height: 30px;
    /* Updated from 16px to 30px */
    object-fit: contain;
    
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.modal-content {
    background-color: #fff;
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
    width: calc(100% - 2rem); /* Wider on mobile, accounting for margins */
    max-width: 48rem; /* max-w-3xl equivalent */
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

/* Add padding to the form elements for better touch targets */
#addressForm input[type="text"] {
    padding: 0.75rem 1rem;
}

/* Improve button spacing on mobile */
#addressForm .flex {
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .modal-content {
        margin: 2rem auto;
        width: 90%;
    }
}
