/* Additions to fix the cut-off part in styles.css */
.btn-danger:hover {
    background-color: #c81e1e;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: modal-slide-in 0.3s ease forwards;
}

@keyframes modal-slide-in {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 20px;
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.close-button:hover {
    color: var(--danger);
}

.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Order Details */
.order-details {
    display: grid;
    gap: 16px;
}

.detail-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: start;
}

.detail-label {
    font-weight: 600;
    color: var(--text-muted);
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Login Styles */
#login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--light-bg);
}

.login-panel {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 40px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    margin-bottom: 20px;
}

.login-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: white;
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 24px;
    width: 100%;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
    background-color: #f9fafb;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.error-message {
    color: var(--danger);
    margin-top: 20px;
    font-size: 14px;
}

.login-footer {
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Spinner */
.spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    gap: 10px;
    color: var(--text-muted);
}

.spinner i {
    font-size: 30px;
    color: var(--primary);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 10px;
    color: var(--text-muted);
    text-align: center;
}

.empty-state i {
    font-size: 36px;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: var(--text-dark);
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 10px;
    color: var(--danger);
    text-align: center;
}

.error-state i {
    font-size: 36px;
    margin-bottom: 10px;
}

.error-state p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: var(--text-dark);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

#page-info {
    color: var(--text-muted);
}

/* Chart Container */
.chart-container {
    height: 300px;
    margin-top: 20px;
    position: relative;
}

.placeholder-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
}

.placeholder-chart i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Reports */
.reports-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 24px 24px 24px;
}

@media (min-width: 992px) {
    .reports-container {
        grid-template-columns: 1fr 1fr;
    }
}

.report-section {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 20px;
}

.section-title {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background-color: white;
    border-top: 1px solid var(--border);
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Form Checkbox */
.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}