.sharemypost-license-tab {
padding: 20px 0;
}

.sharemypost-license-card {
background: #ffffff;
border-radius: 12px;
border: 1px solid #e2e8f0;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
overflow: hidden;
max-width: 850px;
margin: 0 auto;
margin-top: 50px;
}

.sharemypost-license-row {
display: flex;
padding: 16px 24px;
border-bottom: 1px solid #f1f5f9;
align-items: center;
}

.sharemypost-license-row:last-child {
border-bottom: none;
}

.sharemypost-license-label {
flex: 0 0 250px;
font-weight: 700;
color: #1e293b;
font-size: 14px;
}

.sharemypost-license-value {
flex: 1;
color: #64748b;
font-size: 14px;
display: flex;
align-items: center;
}

.sharemypost-license-value.mono {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 13px;
letter-spacing: 0.3px;
}

/* Badge for Unlicensed */
.sharemypost-license-badge {
display: inline-flex;
align-items: center;
padding: 6px 14px;
background: #fff1f2;
color: #e11d48;
border-radius: 8px;
font-size: 13px;
font-weight: 600;
border: 1px solid #ffe4e6;
margin-right: 15px;
}

/* License Input Field */
.sharemypost-license-input-wrapper {
display: flex;
flex-direction: column;
gap: 15px;
}

.sharemypost-license-input-row {
display: flex;
align-items: center;
}

.sharemypost-license-input {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 10px 16px;
width: 380px;
font-size: 14px;
color: #475569;
transition: all 0.2s;
}

.sharemypost-license-input:focus {
border-color: #5525d9;
outline: none;
box-shadow: 0 0 0 3px rgba(85, 37, 217, 0.1);
}

/* Update Button */
.sharemypost-license-btn {
background: #1f75e1;
color: white;
border: none;
padding: 10px 24px;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
width: fit-content;
}

.sharemypost-license-btn:hover {
background: #195eb5;
transform: translateY(-1px);
}


.sharemypost-license-buttons{
display: flex;
gap: 10px;
margin-top: 10px;
}

.sharemypost-license-btn-delete{
background-color: white;
color: #1f75e1;
border-color: white;
}

.sharemypost-license-btn-delete:hover{
background-color: #1f75e1;
border-color: #1f75e1;
color: white;
}

/* Success status text (.htaccess, etc.) */
.sharemypost-text-success {
color: #16a34a;
font-weight: 700;
}

.sharemypost-text-danger {
color: #ef4444;
font-weight: 700;
}

/* Info container for status/expiry */
.sharemypost-license-info {
margin-top: 12px;
font-size: 13px;
color: #94a3b8;
display: flex;
gap: 20px;
}

.sharemypost-license-info span b {
color: #475569;
}

/* Modals */
.sharemypost-modal-overlay {
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0,0,0,0.5);
z-index: 999999;
display: flex;
align-items: center;
justify-content: center;
}

.sharemypost-modal-card {
background: #fff;
width: 90%;
max-width: 450px;
border-radius: 12px;
padding: 25px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sharemypost-modal-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
max-height: 350px;
overflow-y: auto;
padding: 5px;
}

.sharemypost-modal-item {
text-decoration: none;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 15px;
border-radius: 10px;
transition: all 0.2s;
}

.sharemypost-modal-item:hover { background: #f0f0f1; transform: translateY(-1px); }
.sharemypost-modal-label { font-size: 11px; color: #444; font-weight: 500; text-align: center; }

/* Custom Networks */
.sharemypost-custom-networks-grid {
display: grid;
grid-template-columns: repeat(8, 1fr);
gap: 10px;
margin-top: 10px;
}

.sharemypost-custom-networks-grid .sharemypost-network-tile {
position: relative;
padding: 12px;
min-height: 52px;
border-radius: 8px;
}

.sharemypost-custom-networks-grid .sharemypost-network-tile:hover {
background: rgba(66, 195, 113, 0.12);
}

.sharemypost-custom-networks-grid .sharemypost-icon svg {
fill: currentColor;
}

.sharemypost-custom-network-actions {
position: absolute;
top: 6px;
right: 6px;
display: flex;
gap: 4px;
opacity: 0;
transition: opacity 0.2s ease;
z-index: 2;
}

.sharemypost-custom-networks-grid .sharemypost-network-tile:hover .sharemypost-custom-network-actions {
opacity: 1;
}

.sharemypost-custom-network-actions .dashicons {
font-family: dashicons;
font-size: 14px;
width: 22px;
height: 22px;
line-height: 22px;
text-align: center;
border-radius: 3px;
cursor: pointer;
color: #fff;
background: rgba(0,0,0,0.3);
transition: background 0.2s, transform 0.15s;
display: inline-block;
vertical-align: middle;
border: none;
outline: none;
box-shadow: none;
text-decoration: none;
}

.sharemypost-custom-network-actions .dashicons:hover {
background: rgba(0,0,0,0.55);
transform: scale(1.1);
}

.sharemypost-custom-network-actions .dashicons-edit:hover {
background: #2271b1;
}

.sharemypost-custom-network-actions .dashicons-trash:hover {
background: #dc3232;
}

.sharemypost-empty-state {
text-align: center;
padding: 36px 30px;
color: #7f8c8d;
font-size: 14px;
background: #f9f9f9;
border-radius: 8px;
border: 1px dashed #ccc;
line-height: 1.6;
}

.sharemypost-custom-network-form textarea {
font-family: monospace;
font-size: 12px;
}

#sharemypost-custom-preview .sharemypost-button-icon svg {
width: 100%;
height: 100%;
fill: currentColor;
}

#sharemypost-custom-preview .sharemypost-button-icon {
width: 20px;
height: 20px;
min-width: 20px;
display: inline-flex;
align-items: center;
justify-content: center;
}

.sharemypost-click-to-tweet-grid {
display: grid;
grid-template-columns: repeat(2, minmax(320px, 1fr));
gap: 20px;
margin-bottom: 20px;
}

@media screen and (max-width: 960px) {
.sharemypost-click-to-tweet-grid {
grid-template-columns: 1fr;
}
}

.sharemypost-card-type2 {
border-color: rgba(31, 117, 225, 0.16);
background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.sharemypost-card-type2 .sharemypost-field-row {
padding: 18px 0;
}

.sharemypost-card-type2 .sharemypost-field-row:last-child {
border-bottom: none;
}

/* Card header with inline controls (used in Global Configuration) */
.sharemypost-card-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
margin-bottom: 8px;
}

.sharemypost-card-header h2 {
margin: 0;
font-size: 18px;
color: #1e293b;
}

.sharemypost-card-header-controls {
display: flex;
align-items: center;
gap: 12px;
}

.sharemypost-card-label {
font-weight: 600;
color: #475569;
font-size: 13px;
}

@media screen and (max-width: 782px) {
.sharemypost-card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Two-column layout for configuration page */
.sharemypost-config-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
align-items: start;
}

@media screen and (max-width: 960px) {
.sharemypost-config-grid { grid-template-columns: 1fr; }
}

/* Responsive */
@media screen and (max-width: 1200px) {
.sharemypost-custom-networks-grid { grid-template-columns: repeat(6, 1fr); }
}

@media screen and (max-width: 960px) {
.sharemypost-custom-networks-grid { grid-template-columns: repeat(4, 1fr); }
.sharemypost-modal-grid { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (max-width: 782px) {
.sharemypost-custom-networks-grid { grid-template-columns: repeat(3, 1fr); }
.sharemypost-modal-card { padding: 16px; }
.sharemypost-modal-grid { gap: 10px; }
.sharemypost-modal-item { padding: 10px; }
}

@media screen and (max-width: 480px) {
.sharemypost-custom-networks-grid { grid-template-columns: repeat(2, 1fr); }
.sharemypost-modal-grid { grid-template-columns: repeat(2, 1fr); }
.sharemypost-custom-networks-grid .sharemypost-network-tile { min-height: 44px; padding: 8px; }
.sharemypost-custom-network-actions { opacity: 1; }
.sharemypost-custom-network-actions .dashicons { width: 20px; height: 20px; font-size: 12px; line-height: 20px; }
}

.sm-config-header-inline {
display: flex;
align-items: center;
gap: 20px;
margin-bottom: 25px;
border-bottom: 1px solid #eee;
padding-bottom: 15px;
}
.sm-config-header-inline h2 {
margin: 0 !important;
display: inline-block;
}
.sm-config-grid-2x2 {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
.sm-config-field-row {
display: flex;
flex-direction: column;
align-items: flex-start;
width: 100%;
margin-bottom: 15px;
}
.sm-config-field-label {
display: block;
width: 100%;
margin-bottom: 8px;
font-weight: 600;
}
.sm-config-field-input {
display: flex;
flex-direction: column;
align-items: flex-start;
width: 100%;
}
.sm-config-field-input input.regular-text {
width: 100% !important;
max-width: 350px !important; 
display: block;
}
.sm-config-description {
display: block;
margin-top: 6px;
width: 100%;
color: #666;
font-size: 13px;
font-style: italic;
}
@media (max-width: 782px) {
.sm-config-grid-2x2 {
    grid-template-columns: 1fr;
}
}
.sharemypost-notice.is-success{
border-left-color: #4ab866;
margin-right: 15px;
background: #eff9f1;
padding: 10px;
border-radius: 5px;
border: 1px solid #00308f45;
}

.sharemypost-notice.is-error{
position: relative;
display: grid;
background: #00308f05;
padding: 10px;
width: calc(100% - 20px);
z-index: 10;
border-radius: 5px;
width: auto;
display: flex;
border: 1px solid #00308f45;
font-size: 13px;
border-left-color: #cc1818;
background: rgb(244 162 162 / 30%);
}
