/* --- Main Ad Banner Styles --- */
.lga-banner-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 10000;
    padding: 12px;
    border-radius: 16px;
    width: 400px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.lga-banner-rotation {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.lga-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 8px;
}

.lga-banner.active {
    opacity: 1;
    transform: translateX(0);
}

.lga-content-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lga-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.lga-app-icon:hover {
    transform: scale(1.05);
}

.lga-banner-text {
    flex-grow: 1;
}

.lga-app-name {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.3;
}

.lga-size-info {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.3;
}

.lga-button-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lga-install-button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white !important; /* important to override theme styles */
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.lga-install-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
    color: white !important;
}

.lga-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lga-info-button, .lga-close-button {
    background: rgba(0, 123, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: #007bff;
}

.lga-info-button:hover, .lga-close-button:hover {
    transform: scale(1.1);
    background: rgba(0, 123, 255, 0.2);
}

.lga-footer {
    text-align: center;
    margin-top: 8px;
    font-size: 10px;
    color: #6c757d;
}
.lga-powered-by a {
    color: #007bff;
    text-decoration: none;
}

/* --- Popups --- */
.lga-reason-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s;
}
.lga-reason-popup.active {
    opacity: 1;
}
.lga-popup-content {
    background: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    max-width: 320px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s;
}
.lga-reason-popup.active .lga-popup-content {
    transform: scale(1);
}

.lga-popup-content h3 { margin: 0 0 12px; font-size: 18px; color: #1a1a1a; }
.lga-popup-content p { margin: 0 0 16px; font-size: 14px; color: #6c757d; line-height: 1.5; }
.lga-popup-close { background: #eee; border: none; color: #333; font-size: 14px; margin-top: 12px; cursor: pointer; padding: 8px 16px; border-radius: 12px; }

/* --- Client Dashboard Styles --- */
.lga-client-dashboard { max-width: 960px; margin: 20px auto; font-family: sans-serif; }
.lga-ad-analytics-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 30px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.lga-ad-header { display: flex; align-items: center; padding: 20px; border-bottom: 1px solid #e0e0e0; }
.lga-ad-icon { width: 50px; height: 50px; border-radius: 10px; margin-right: 15px; }
.lga-ad-header h3 { margin: 0; font-size: 22px; color: #333; }
.lga-ad-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; padding: 20px; }
.lga-stat-box { text-align: center; background: #f9f9f9; padding: 15px; border-radius: 8px; }
.lga-stat-number { display: block; font-size: 28px; font-weight: bold; color: #007bff; }
.lga-stat-label { font-size: 14px; color: #555; }
.lga-client-dashboard h4 { font-size: 18px; padding: 0 20px; margin-top: 10px; }
.lga-log-table-wrapper { padding: 20px; overflow-x: auto; }
.lga-log-table { width: 100%; border-collapse: collapse; }
.lga-log-table th, .lga-log-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; }
.lga-log-table th { background: #f5f5f5; font-size: 13px; text-transform: uppercase; color: #666; }
.lga-log-table td { font-size: 14px; }
.lga-log-action-view { background: #e0f3ff; color: #006aab; padding: 3px 7px; border-radius: 5px; font-size: 12px; }
.lga-log-action-click { background: #d1e7dd; color: #0f5132; padding: 3px 7px; border-radius: 5px; font-size: 12px; }

/* --- Responsive Design --- */
@media (max-width: 767px) {
    .lga-banner-container { left: 8px; right: 8px; bottom: 8px; width: auto; }
    .lga-ad-stats { grid-template-columns: 1fr; }
}