/* assets/css/tpavmt-frontend.css */
.tpavmt-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.tpavmt-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.tpavmt-inner {
    max-width: 680px;
    width: 100%;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

@media (max-width: 768px) {
    .tpavmt-body {
        padding: 10px;
    }
    .tpavmt-inner {
        border-radius: 16px;
    }
}

.tpavmt-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 24px;
    text-align: center;
}

.tpavmt-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .tpavmt-header {
        padding: 20px 16px;
    }
    .tpavmt-header h1 {
        font-size: 22px;
    }
}

.tpavmt-form {
    padding: 30px 24px;
}

@media (max-width: 768px) {
    .tpavmt-form {
        padding: 20px 16px;
    }
}

.tpavmt-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.tpavmt-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.tpavmt-limit {
    font-size: 14px;
    font-weight: normal;
    color: #6b7280;
}

.tpavmt-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.tpavmt-copyright-notice {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 16px;
    margin-bottom: 32px;
    border-radius: 8px;
    font-size: 14px;
    color: #92400e;
}

.tpavmt-copyright-notice p {
    margin: 0;
}

.tpavmt-profile-photo-container,
.tpavmt-gallery-container,
.tpavmt-videos-container {
    margin-bottom: 16px;
}

.tpavmt-current-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    margin-bottom: 16px;
    position: relative;
}

.tpavmt-current-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpavmt-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
}

.tpavmt-upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tpavmt-upload-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tpavmt-upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tpavmt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.tpavmt-gallery-item {
    position: relative;
    aspect-ratio: 1;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
}

.tpavmt-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpavmt-remove-gallery-btn,
.tpavmt-remove-photo-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.tpavmt-remove-gallery-btn:hover,
.tpavmt-remove-photo-btn:hover {
    background: #ef4444;
}

.tpavmt-counter {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

.tpavmt-video-item {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tpavmt-video-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.tpavmt-video-input:focus {
    outline: none;
    border-color: #667eea;
}

.tpavmt-remove-video-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
}

.tpavmt-add-video-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
}

.tpavmt-add-video-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tpavmt-form-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.tpavmt-submit-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tpavmt-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.tpavmt-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tpavmt-return-link {
    text-align: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.tpavmt-return-link:hover {
    color: #667eea;
}

.tpavmt-footer {
    background: #f9fafb;
    padding: 20px 24px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #6b7280;
}

.tpavmt-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2937;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.tpavmt-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.tpavmt-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.tpavmt-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    overflow: auto;
}

.tpavmt-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tpavmt-modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
}

.tpavmt-modal-body {
    padding: 20px;
}

.tpavmt-crop-container {
    text-align: center;
    margin: 20px 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tpavmt-crop-container img {
    max-width: 100%;
    cursor: move;
}

.tpavmt-crop-controls {
    text-align: center;
    margin-top: 16px;
}

.tpavmt-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
}

.tpavmt-notice-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    margin: 16px 24px;
    border-radius: 8px;
    color: #92400e;
    font-size: 14px;
}

/* Button on therapist dashboard */
.tpavmt-dashboard-button-container {
    margin: 20px 0;
}

.tpavmt-manage-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tpavmt-manage-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}