/* RESET E VARIABILI */
:root {
    --primary-blue: #0f172a;
    --accent-blue: #1d4ed8;
    --light-blue: #3b82f6;
    --light-blue-bg: #eff6ff;
    --white: #ffffff;
    --bg-color: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --radius: 12px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tcsFadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.tcs-animate-fade-up {
    animation: tcsFadeUp 0.5s var(--transition) forwards;
}

/* SKELETON ANIMATION */
@keyframes tcsSkeleton {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.tcs-skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: tcsSkeleton 1.5s infinite linear;
    border-radius: 8px;
}

.tcs-app-root {
    transition: opacity 0.4s var(--transition), transform 0.4s var(--transition);
    transform: translateY(0) scale(1);
}

.tcs-app-root.tcs-hidden {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
}

.tcs-app-root *, .tcs-navbar *, .tcs-footer * {
    box-sizing: border-box;
}

/* NAVBAR */
.tcs-navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.tcs-navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* AUTO-HIDE LOGO SE EMBEDDED, MA TIENI I LINK */
body.tcs-is-embedded .tcs-navbar {
    background-color: #f1f5f9 !important; /* Grigio chiarissimo per distinguerla dal blu WP */
    border-bottom: 2px solid #e2e8f0;
    box-shadow: none;
    padding: 8px 0;
}

body.tcs-is-embedded .tcs-navbar .tcs-logo {
    display: none !important;
}

body.tcs-is-embedded .tcs-nav-content {
    justify-content: center !important;
}

body.tcs-is-embedded .tcs-nav-links a {
    margin: 0 1rem;
    color: var(--primary-blue);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tcs-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tcs-brand-logo {
    height: 60px;
    width: auto;
    display: block;
}

.tcs-nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    margin-left: 20px;
    font-size: 14px;
    transition: 0.3s;
}

.tcs-nav-links a:hover { color: var(--light-blue); }

/* HERO SECTION (BANNER BLU) */
.tcs-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.tcs-hero h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.tcs-hero p {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.5;
}

/* CONTAINER E GRID */
.tcs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.tcs-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* SEARCH AND FILTERS CONTAINER */
.tcs-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tcs-search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.tcs-search-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    background: white;
}

.tcs-search-input:focus {
    border-color: var(--light-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.tcs-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.tcs-filter-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}
.tcs-filter-bar::-webkit-scrollbar { display: none; }

.tcs-filter-chip {
    padding: 8px 18px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.tcs-filter-chip.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.tcs-course-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #edf2f7;
    text-align: left;
    transition: all 0.3s var(--transition);
    cursor: pointer;
}

.tcs-course-card:hover { 
    transform: translateY(-8px) scale(1.01); 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--light-blue);
}

.tcs-course-category {
    background: var(--light-blue-bg);
    color: var(--accent-blue);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.tcs-course-title { font-size: 1.3rem; font-weight: 700; color: var(--primary-blue); margin-bottom: 10px; }
.tcs-course-desc { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; height: 3.6rem; overflow: hidden; }

.tcs-course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.tcs-btn {
    background: var(--light-blue);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: all 0.2s var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tcs-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.tcs-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

.tcs-btn-csv {
    background-color: #10b981; /* Verde elegante */
    margin-right: 1rem;
}
.tcs-btn-csv:hover {
    background-color: #059669;
}

/* DETTAGLIO E FORM */
.tcs-course-detail, .tcs-booking-form {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.tcs-form-group { margin-bottom: 20px; }
.tcs-form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--primary-blue); font-size: 14px; }
.tcs-form-control { 
    width: 100%; 
    padding: 12px 16px; 
    border: 2px solid #e2e8f0; 
    border-radius: 8px; 
    font-size: 16px; 
    transition: all 0.2s var(--transition);
    outline: none;
}

.tcs-form-control.tcs-valid {
    border-color: #10b981;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2310b981'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.tcs-form-control:focus {
    border-color: var(--light-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: white;
}

.tcs-form-group label {
    transition: color 0.2s;
}

.tcs-form-group:focus-within label {
    color: var(--light-blue);
}

.tcs-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 5px;
}

.tcs-form-row .tcs-form-group {
    flex: 1;
}

@media (max-width: 600px) {
    .tcs-form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* DASHBOARD */
.tcs-admin-panel table { width: 100%; border-collapse: collapse; }
.tcs-admin-panel th, .tcs-admin-panel td { padding: 12px; border-bottom: 1px solid #eee; text-align: left; font-size: 14px; }
.tcs-admin-panel th { background: var(--light-blue-bg); color: var(--primary-blue); }

/* ADMIN TABS & CRUD */
.tcs-admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.tcs-tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    border-radius: 8px;
    transition: 0.3s;
}

.tcs-tab-btn.active {
    background: var(--light-blue-bg);
    color: var(--accent-blue);
}

.tcs-admin-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.tcs-btn-edit { background: #f59e0b; }
.tcs-btn-delete { background: #ef4444; }

.tcs-admin-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tcs-course-content {
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.tcs-course-content p {
    margin-bottom: 12px;
}

.tcs-course-content ul {
    margin: 15px 0 25px 25px;
    padding: 0;
}

.tcs-course-content li {
    margin-bottom: 8px;
}

/* FOOTER STYLE REMOVED */

.tcs-program-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 16px;
    margin-top: 30px;
}

.tcs-program-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
}

.tcs-policy-card {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    line-height: 1.6;
}

.tcs-policy-card h2 { color: var(--primary-blue); margin-bottom: 25px; }
.tcs-policy-card h4 { color: var(--accent-blue); margin-top: 25px; margin-bottom: 10px; }
.tcs-policy-card p { color: var(--text-dark); margin-bottom: 15px; font-size: 15px; }
.tcs-policy-card ul { margin-bottom: 20px; padding-left: 20px; }
.tcs-policy-card li { margin-bottom: 8px; color: var(--text-dark); font-size: 14px; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .tcs-hero { padding: 30px 15px; }
    .tcs-hero h1 { font-size: 22px !important; }
    .tcs-hero p { font-size: 14px; }
    
    .tcs-nav-content { flex-wrap: wrap; justify-content: center; }
    .tcs-brand-logo { height: 50px; margin-bottom: 10px; }
    .tcs-nav-links { width: 100%; text-align: center; }

    /* Fix Table per mobile */
    .tcs-admin-panel table, .tcs-admin-panel thead, .tcs-admin-panel tbody, .tcs-admin-panel th, .tcs-admin-panel td, .tcs-admin-panel tr { display: block; }
    .tcs-admin-panel td { padding-left: 50%; position: relative; text-align: right; }
    .tcs-admin-panel td::before { content: attr(data-label); position: absolute; left: 10px; font-weight: 700; color: var(--primary-blue); }
}

.tcs-title-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

/* SUCCESS PAGE */
.tcs-success-container {
    text-align: center;
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tcs-success-icon {
    width: 80px;
    height: 80px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
    animation: tcsPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes tcsPop {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.tcs-success-container h2 {
    color: var(--primary-blue);
    margin-bottom: 16px;
    font-size: 24px;
}

.tcs-success-container p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* STATS CARDS */
.tcs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tcs-stats-card {
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s var(--transition);
}

.tcs-stats-card:hover {
    transform: translateY(-5px);
}

.tcs-stats-card.primary {
    background: var(--light-blue-bg);
}

.tcs-stats-card.white {
    background: white;
    border: 1px solid #e2e8f0;
}

.tcs-stats-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.tcs-stats-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-blue);
}

/* ERROR STATES */
.tcs-form-control.tcs-invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
    animation: tcsShake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes tcsShake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* MULTI-STEP PROGRESS BAR */
.tcs-progress-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.tcs-progress-container::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.tcs-progress-line {
    position: absolute;
    top: 15px;
    left: 0;
    height: 2px;
    background: var(--light-blue);
    z-index: 1;
    transition: width 0.4s ease;
    width: 0%;
}

.tcs-step-item {
    background: white;
    border: 2px solid #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    z-index: 2;
    transition: all 0.3s;
    position: relative;
}

.tcs-step-item.active {
    background: var(--light-blue);
    border-color: var(--light-blue);
    color: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.tcs-step-item.done {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.tcs-step-label {
    position: absolute;
    top: 40px;
    font-size: 10px;
    text-transform: uppercase;
    white-space: nowrap;
    font-weight: 700;
    color: var(--text-light);
    text-align: center;
}

.tcs-step-item.active .tcs-step-label { color: var(--accent-blue); }

/* STEP CONTENT HANDLING */
.tcs-form-step {
    display: none;
    animation: tcsStepIn 0.4s ease forwards;
}

.tcs-form-step.active {
    display: block;
}

@keyframes tcsStepIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* BUTTONS NAV */
.tcs-step-nav {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.tcs-btn-back {
    background: #f1f5f9;
    color: var(--text-light);
    box-shadow: none;
}

.tcs-btn-back:hover {
    background: #e2e8f0;
    color: var(--primary-blue);
}

/* CF HELPER */
.tcs-cf-helper {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.tcs-link-btn {
    background: none;
    border: none;
    color: var(--light-blue);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.tcs-link-btn:hover { color: var(--accent-blue); }

/* SPINNER PER LOADING */
.tcs-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: tcsSpin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes tcsSpin {
    to { transform: rotate(360deg); }
}

.tcs-error-msg {
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
    display: none;
    animation: tcsFadeUp 0.3s ease forwards;
}

.tcs-form-group.tcs-has-error .tcs-error-msg {
    display: block;
}

/* TOAST NOTIFICATIONS */
.tcs-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tcs-toast {
    padding: 12px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--light-blue);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    animation: tcsFadeUp 0.3s var(--transition) forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tcs-toast.success { border-left-color: #10b981; }
.tcs-toast.error { border-left-color: #ef4444; }

/* MODAL / OVERLAY */
.tcs-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: tcsFadeIn 0.3s ease forwards;
}

@keyframes tcsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tcs-modal {
    background: white;
    border-radius: 20px;
    width: 95%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.tcs-modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: #f1f5f9;
    border: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    z-index: 10;
}

.tcs-modal-close:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

/* CRM DETAIL SCHEME */
.tcs-detail-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.tcs-detail-section:last-of-type {
    border-bottom: none;
}

.tcs-detail-section-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tcs-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.tcs-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tcs-detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
}

.tcs-detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tcs-copy-btn {
    padding: 2px 6px;
    font-size: 10px;
    background: var(--light-blue-bg);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.tcs-copy-btn:hover {
    background: var(--accent-blue);
    color: white;
}

@media (max-width: 500px) {
    .tcs-detail-grid {
        grid-template-columns: 1fr;
    }
}


/* FAB WHATSAPP */
.tcs-fab-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tcs-fab-whatsapp:hover {
    transform: scale(1.1) rotate(10deg);
}

body.tcs-is-embedded .tcs-fab-whatsapp {
    display: none;
}

/* CRM STATUS BADGES */
.tcs-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.tcs-status-nuovo { background: #dbeafe; color: #1e40af; }
.tcs-status-contattato { background: #fef9c3; color: #854d0e; }
.tcs-status-attesa { background: #ffedd5; color: #9a3412; }
.tcs-status-iscritto { background: #dcfce7; color: #166534; }
.tcs-status-annullato { background: #fee2e2; color: #991b1b; }

.tcs-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    text-decoration: none;
}

.tcs-action-whatsapp { background: #25d366; color: white; }
.tcs-action-phone { background: #3b82f6; color: white; }
.tcs-action-btn:hover { filter: brightness(0.9); transform: translateY(-1px); }

/* ADMIN SELECT */
.tcs-status-select {
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    background: #f8fafc;
    cursor: pointer;
}

/* CRM TAGS */
.tcs-tag-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.tcs-tag-interessato { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; } /* Hot */
.tcs-tag-freddo { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; } /* Cold */
.tcs-tag-valutazione { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; } /* Warm */
.tcs-tag-scartare { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; } /* Junk */

/* REMINDER NOTIFICATION */
.tcs-reminder-icon {
    font-size: 16px;
    animation: tcsRing 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes tcsRing {
    0% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(0); }
    100% { transform: rotate(0); }
}

.tcs-modal-form-inline {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.tcs-modal-form-inline .tcs-form-group {
    flex: 1;
    margin-bottom: 0;
}

