/* Lens2Go Admin Styles */

.lens2go-settings .form-table th {
    width: 150px;
}

#lens2go-connection-result .lens2go-success {
    color: #28a745;
    font-weight: 600;
}

#lens2go-connection-result .lens2go-error {
    color: #dc3545;
    font-weight: 600;
}

#lens2go-connection-result .lens2go-info {
    background: #d4edda;
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
}

/* Meta box button states */
#lens2go-generate-video:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

#lens2go-generate-video.generating {
    pointer-events: none;
}

/* Animation for progress bar */
@keyframes lens2go-shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

.lens2go-progress-fill.animating {
    background: linear-gradient(90deg, #1da595 0%, #0d86f8 50%, #1da595 100%);
    background-size: 400px 100%;
    animation: lens2go-shimmer 1.5s infinite linear;
}

/* Copy button feedback */
.lens2go-copy-url.copied,
.lens2go-copy-result.copied {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
}

/* No images warning */
.lens2go-no-images {
    color: #856404;
    background: #fff3cd;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

/* Detected images list */
.lens2go-image-list {
    font-size: 12px;
    color: #666;
}

/* Settings page styles */
.lens2go-settings {
    max-width: 800px;
}
.lens2go-intro {
    background: #f0f6fc;
    border-left: 4px solid #1da595;
    padding: 12px 16px;
    margin: 20px 0;
}
.lens2go-info {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    margin-top: 20px;
}
.lens2go-info h2 {
    margin-top: 20px;
    color: #1da595;
}
.lens2go-info h2:first-child {
    margin-top: 0;
}
.lens2go-info ol {
    margin-left: 20px;
}
.lens2go-info li {
    margin-bottom: 10px;
}

/* Meta box styles */
.lens2go-meta-box {
    padding: 5px 0;
}
.lens2go-credits {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 8px;
    background: #f0f6fc;
    border-radius: 4px;
}
.lens2go-credits-label {
    font-weight: 600;
}
#lens2go-credits-count {
    font-weight: 700;
    color: #1da595;
}
.lens2go-buy-credits {
    margin-left: auto;
    font-size: 12px;
}
.lens2go-notice {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.lens2go-notice-warning {
    background: #fcf8e3;
    border-left: 4px solid #f0ad4e;
}
.lens2go-notice-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}
.lens2go-detected-images {
    margin: 10px 0;
    max-height: 120px;
    overflow-y: auto;
}
.lens2go-image-count {
    font-weight: 600;
    color: #1da595;
}
.lens2go-image-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}
.lens2go-image-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}
#lens2go-generate-video {
    width: 100%;
    margin-top: 10px;
}
.lens2go-progress-bar {
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0 10px;
}
.lens2go-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1da595, #0d86f8);
    transition: width 0.3s ease;
}
.lens2go-progress-text {
    text-align: center;
    font-size: 12px;
    color: #666;
}
.lens2go-success {
    text-align: center;
    padding: 10px;
}
.lens2go-success-icon {
    font-size: 32px;
    color: #28a745;
}
.lens2go-video-url-display {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}
.lens2go-video-url-display input {
    flex: 1;
    font-size: 11px;
}
.lens2go-video-exists {
    text-align: center;
    padding: 10px;
    background: #d4edda;
    border-radius: 4px;
}
#lens2go-delete-video {
    margin-top: 10px;
}
.lens2go-delete-btn {
    color: #a00 !important;
    border-color: #a00 !important;
}
.lens2go-delete-btn:hover {
    background: #a00 !important;
    color: #fff !important;
}

/* Music track selector */
.lens2go-music-field {
    margin: 10px 0;
}
.lens2go-music-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 4px;
}
.lens2go-music-field select {
    width: 100%;
    padding: 5px 8px;
    font-size: 12px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    background: #fff;
    height: 30px;
}

/* Property & Agent Details collapsible section */
.lens2go-details-section {
    margin: 12px 0 5px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    overflow: hidden;
}
.lens2go-details-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #f0f6fc;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    color: #1e1e1e;
    user-select: none;
}
.lens2go-details-header:hover {
    background: #e2ecf5;
}
.lens2go-details-arrow {
    font-size: 10px;
    transition: transform 0.2s;
    display: inline-block;
}
.lens2go-details-arrow.open {
    transform: rotate(90deg);
}
.lens2go-details-hint {
    font-weight: 400;
    font-size: 11px;
    color: #888;
    margin-left: auto;
}
.lens2go-details-body {
    padding: 10px;
    background: #fff;
}

/* Field groups */
.lens2go-field-group {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.lens2go-field-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.lens2go-field-group-title {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    color: #1da595;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Individual fields */
.lens2go-field {
    margin-bottom: 6px;
}
.lens2go-field label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #555;
    margin-bottom: 2px;
}
.lens2go-field input[type="text"],
.lens2go-field input[type="email"],
.lens2go-field input[type="url"],
.lens2go-field input[type="number"],
.lens2go-field select {
    width: 100%;
    padding: 4px 6px;
    font-size: 12px;
    border: 1px solid #ccd0d4;
    border-radius: 3px;
    box-sizing: border-box;
}
.lens2go-field input[type="color"] {
    width: 100%;
    height: 28px;
    padding: 1px 2px;
    border: 1px solid #ccd0d4;
    border-radius: 3px;
    cursor: pointer;
}
.lens2go-field select {
    height: 28px;
}

/* Field rows for side-by-side layout */
.lens2go-field-row {
    display: flex;
    gap: 8px;
}
.lens2go-field-half {
    flex: 1;
}
.lens2go-field-row-thirds {
    display: flex;
    gap: 6px;
}
.lens2go-field-row-thirds .lens2go-field {
    flex: 1;
}

/* Upload buttons */
.lens2go-upload-btn {
    margin-top: 3px !important;
    font-size: 11px !important;
    padding: 0 8px !important;
    height: 24px !important;
    line-height: 22px !important;
}

/* Save agent/branding button */
.lens2go-save-details {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
#lens2go-save-agent-branding {
    font-size: 11px;
    padding: 2px 10px;
}
#lens2go-save-status {
    font-size: 11px;
    color: #28a745;
}
