/* dynamic-pointers.css - Frontend Styles */

.dynamic-pointer-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.image-container {
    position: relative;
    width: 100%;
    height: 60%;
    background: #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.diagram-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pointer {
    position: absolute;
    width: 35px;
    height: 35px;
    background: #fff;
    border: 3px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}

.pointer::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #000;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: -1;
}

.pointer:hover {
    transform: scale(1.15);
}

.pointer:hover::before {
    opacity: 0.1;
    transform: scale(1.5);
}

.pointer.active {
    background: #000;
    color: white;
    transform: scale(1.2);
    /* animation: pulse-pointer 2s infinite; */
}

@keyframes pulse-pointer {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }

    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
    }
}

.scroll-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: #e6e6e6;
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.scroll-header {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.scroll-content {


    height: calc(100% - 60px);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #000 #f1f5f9;
    padding: 0 20px;
}

.scroll-content::-webkit-scrollbar {
    height: 6px;
}

.scroll-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.scroll-content::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 3px;
}

.items-container {
    display: flex;
    height: 100%;
    min-width: max-content;
    gap: 25px;
    align-items: center;
    padding: 20px 0;
}

.info-card {
    min-width: 320px;
    max-width: 380px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
    transform: scale(0.95);
    cursor: pointer;
}

.info-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: #000;
}

.info-card:hover {
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #000;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.navigation-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #000;
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dynamic-pointer-container {
        height: 80vh;
    }

    .info-card {
        min-width: 280px;
        max-width: 320px;
        padding: 18px;
    }

    .scroll-header {
        font-size: 16px;
        padding: 12px 18px;
    }
}

@media (max-width: 768px) {
    .dynamic-pointer-container {
        height: 70vh;
    }

    .image-container {
        height: unset !important;
    }

    .scroll-panel {
        height: 45%;
    }

    .info-card {
        min-width: 250px;
        max-width: 280px;
        padding: 15px;
    }

    .pointer {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .scroll-header {
        font-size: 14px;
        padding: 10px 15px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-description {
        font-size: 13px;
    }

    .items-container {
        gap: 20px;
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .dynamic-pointer-container {
        height: 60vh;
        border-radius: 8px;
    }

    .image-container {
        height: 50%;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .scroll-panel {
        height: 50%;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    .info-card {
        min-width: 220px;
        max-width: 250px;
        padding: 12px;
    }

    .pointer {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .items-container {
        gap: 15px;
        padding: 12px 0;
    }
}

/* Admin Styles (admin.css) */
.pointer-admin-container {
    max-width: 1200px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.admin-tabs {
    border-bottom: 1px solid #ddd;
    margin-bottom: 25px;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.tab-button.active {
    border-bottom-color: #0073aa;
    color: #0073aa;
    background: rgba(0, 115, 170, 0.05);
}

.tab-button:hover {
    background: rgba(0, 115, 170, 0.05);
    color: #0073aa;
}

.admin-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-form h2 {
    margin-bottom: 25px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.image-selector {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.image-selector:hover {
    border-color: #0073aa;
}

#selected-image-preview {
    text-align: center;
    padding: 15px;
}

#preview-img {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.point-item {
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.point-item:hover {
    border-color: #0073aa;
    background: #f5f9ff;
}

.point-item h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.position-group {
    margin-bottom: 15px;
}

.position-inputs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.position-inputs input {
    max-width: 80px !important;
    text-align: center;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
}

.button-primary {
    background: #0073aa !important;
    border-color: #005a87 !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
}

.button-primary:hover {
    background: #005a87 !important;
    border-color: #004568 !important;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    width: 95%;
    max-width: 1200px;
    border-radius: 12px;
    position: relative;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    color: #666;
    transition: color 0.3s ease;
    background: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.close:hover {
    color: #000;
    background: #f5f5f5;
}

/* Configuration Management */
.config-item {
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.config-item:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.1);
}

.config-item h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.config-item p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.config-item code {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #d63384;
    font-size: 13px;
}

.config-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.config-actions .button {
    font-size: 13px !important;
    padding: 6px 12px !important;
    height: auto !important;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .pointer-admin-container {
        margin: 10px;
    }

    .admin-form {
        padding: 20px 15px;
    }

    .position-inputs {
        flex-direction: column;
        align-items: flex-start;
    }

    .position-inputs input {
        max-width: 100% !important;
    }

    .form-actions {
        flex-direction: column;
    }

    .config-actions {
        flex-direction: column;
    }

    .modal-content {
        width: 98%;
        margin: 1% auto;
    }
}