/**
 * GSC Listing Notifications - Frontend
 */

/* Container */
.gsc-ln-manager {
    max-width: 800px;
    margin: 0 auto;
    margin-top:50px;
    margin-bottom:50px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gsc-ln-header {
    margin-bottom: 25px;
}

.gsc-ln-header h2 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 600;
}

.gsc-ln-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Login required */
.gsc-ln-login-required {
    padding: 20px;
    background: #f0f0f0;
    border-radius: 8px;
    text-align: center;
}

/* Table Container */
.gsc-ln-table-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.gsc-ln-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.gsc-ln-table-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.gsc-ln-count {
    color: #666;
    font-weight: normal;
}

/* Table */
.gsc-ln-table {
    width: 100%;
    border-collapse: collapse;
}

.gsc-ln-table th,
.gsc-ln-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.gsc-ln-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    color: #555;
    text-transform: uppercase;
}

.gsc-ln-table tbody tr:hover {
    background: #f9f9f9;
}

.gsc-ln-table tbody tr:last-child td {
    border-bottom: none;
}

.gsc-ln-actions {
    width: 50px;
    text-align: center;
}

.gsc-ln-delete-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
    background-color: #d63638;
}

.gsc-ln-delete-btn:hover {
    background: #fee;
    color: #d63638;
}

.gsc-ln-delete-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Empty state */
.gsc-ln-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

/* Buttons */
.gsc-ln-btn {
    padding: 10px 20px;
    background: #0099cc;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gsc-ln-btn:hover {
    background: #007aa3;
}

.gsc-ln-add-icon {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.gsc-ln-btn-sm {
    padding: 6px 12px;
    background: #0099cc;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gsc-ln-btn-sm:hover {
    background: #007aa3;
}

.gsc-ln-btn-sm .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.gsc-ln-cancel-btn {
    background: #6c757d;
}

.gsc-ln-cancel-btn:hover {
    background: #5a6268;
}

/* Form Container */
.gsc-ln-form-container {
    background: #fff;
    border: 1px solid #0099cc;
    border-radius: 8px;
    margin-top: 20px;
    overflow: hidden;
}

.gsc-ln-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #0099cc;
    color: #fff!important;
}

.gsc-ln-form-header h3 {
    margin: 0;
    font-size: 16px;
    color: #fff!important;
}

.gsc-ln-close-form {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.8;
}

.gsc-ln-close-form:hover {
    opacity: 1;
}

.gsc-ln-subscription-form {
    padding: 20px;
}

/* Selector Tabs */
.gsc-ln-selector-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
}

.gsc-ln-selector-tab {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #0099cc;
    background: #fff;
    color: #0099cc;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.gsc-ln-selector-tab:first-child {
    border-radius: 20px 0 0 20px;
}

.gsc-ln-selector-tab:last-child {
    border-radius: 0 20px 20px 0;
    border-left: none;
}

.gsc-ln-selector-tab.active {
    background: #0099cc;
    color: #fff;
}

/* Toolbar */
.gsc-ln-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.gsc-ln-search {
    flex: 1;
    min-width: 150px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}

.gsc-ln-search:focus {
    outline: none;
    border-color: #0099cc;
}

/* Panels */
.gsc-ln-panel {
    display: none;
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
}

.gsc-ln-panel.active {
    display: block;
}

/* Checklist */
.gsc-ln-checklist {
    padding: 10px;
}

.gsc-ln-check-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin: 2px 0;
    background: #f9f9f9;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.gsc-ln-check-item:hover {
    background: #f0f0f0;
}

.gsc-ln-check-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.gsc-ln-check-label {
    flex: 1;
    font-size: 14px;
}

/* Region groups */
.gsc-ln-region-group {
    margin-bottom: 5px;
}

.gsc-ln-region-header {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 5px;
}

.gsc-ln-region-toggle {
    padding: 5px 10px;
    cursor: pointer;
    user-select: none;
    font-size: 12px;
    color: #666;
    transition: transform 0.2s;
}

.gsc-ln-region-toggle.open {
    transform: rotate(90deg);
}

.gsc-ln-region-item {
    flex: 1;
    margin: 0;
    background: transparent;
}

.gsc-ln-region-item:hover {
    background: transparent;
}

.gsc-ln-cities {
    margin-left: 30px;
    border-left: 2px solid #ddd;
    padding-left: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.gsc-ln-city-item {
    background: #fff;
    margin: 2px 0;
}

/* Hidden items */
.gsc-ln-check-item.hidden,
.gsc-ln-region-group.hidden {
    display: none;
}

/* Form footer */
.gsc-ln-form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Message */
.gsc-ln-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
}

.gsc-ln-message.success {
    background: #d4edda;
    color: #155724;
}

.gsc-ln-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* All subscriptions view */
.gsc-ln-all-subscriptions {
    max-width: 900px;
    margin: 0 auto;
}

.gsc-ln-all-subscriptions h2 {
    margin-bottom: 20px;
}

.gsc-ln-all-subscriptions .gsc-ln-table {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    .gsc-ln-table-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .gsc-ln-toolbar {
        flex-direction: column;
    }
    
    .gsc-ln-search {
        width: 100%;
    }
    
    .gsc-ln-table th,
    .gsc-ln-table td {
        padding: 10px;
        font-size: 13px;
    }
    
    .gsc-ln-form-footer {
        flex-direction: column;
    }
    
    .gsc-ln-form-footer .gsc-ln-btn {
        width: 100%;
        justify-content: center;
    }
}