/* Custom styling for XeroLite app */

/* Global styling */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

/* Dashboard cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Hover effect for clickable cards */
.card.card-clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* Status badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Avatar styling */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
}

/* Invoice status colors */
.status-paid {
    color: #198754;
}

.status-partial {
    color: #0dcaf0;
}

.status-overdue {
    color: #dc3545;
}

.status-draft, .status-sent {
    color: #6c757d;
}

/* Form styling */
.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Table styling */
.table {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Invoice items table */
#invoice-items .form-control {
    min-height: 36px;
}

/* Navbar active link */
.navbar-dark .navbar-nav .nav-link.active {
    font-weight: 500;
}

/* Custom button styles */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Login/Register page */
.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
}

/* Footer styling */
.footer {
    background-color: #f8f9fa;
    padding: 1rem 0;
    margin-top: auto;
}

/* Fixed action button for mobile */
.fixed-action-btn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 1030;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .d-flex.justify-content-between .btn-group {
        width: 100%;
    }
    
    .d-flex.justify-content-between .btn {
        width: 100%;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}
