 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #f8f9fa;
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .header {
            text-align: center;
            margin-bottom: 30px;
        }

        .header h1 {
            color: #2c3e50;
            font-size: 2.2em;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .header p {
            color: #6c757d;
            font-size: 1em;
        }

        .sections-container {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 20px;
            align-items: stretch;
        }

        .section {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            border: 1px solid #e9ecef;
            height: 520px; /* Fixed height for all cards */
            display: flex;
            flex-direction: column;
        }

        /* Make section content scrollable if it overflows */
        .section-content {
            flex: 1;
            overflow-y: auto;
            padding-right: 5px; /* Space for scrollbar */
        }

        .section h2 {
            color: #2c3e50;
            margin-bottom: 20px;
            font-size: 1.3em;
            display: flex;
            align-items: center;
            gap: 8px;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 10px;
            flex-shrink: 0;
        }

        /* Form Styles */
        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 6px;
            color: #34495e;
            font-weight: 500;
            font-size: 14px;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 10px 12px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s ease;
            background: white;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: #007bff;
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
        }

        /* Slider Styles */
        .slider-container {
            font-family: sans-serif;
            width: 100%;
            margin: 0;
        }

        .slider-label {
            font-size: 14px;
            margin-bottom: 8px;
            color: #34495e;
            font-weight: 500;
        }

        input[type="range"] {
            width: 100%;
            -webkit-appearance: none;
            background: transparent;
            margin: 8px 0;
        }

        input[type="range"]::-webkit-slider-runnable-track {
            height: 6px;
            background: #e9ecef;
            border-radius: 3px;
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            height: 20px;
            width: 20px;
            background: #007bff;
            border-radius: 50%;
            margin-top: -7px;
            cursor: pointer;
            border: 2px solid white;
            box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
        }

        input[type="range"]::-moz-range-thumb {
            height: 20px;
            width: 20px;
            background: #007bff;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid white;
            box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
        }

        .ticks {
            display: flex;
            justify-content: space-between;
            margin-top: 2px;
        }

        .tick {
            height: 4px;
            width: 1px;
            background: #666;
        }

        /* Update transcript section to be scrollable */
        .transcript-section {
            background: #f8f9fa;
            padding: 12px;
            border-radius: 6px;
            margin-top: 15px;
            border-left: 3px solid #27ae60;
            max-height: 270px; /* Limit height */
            overflow-y: auto; /* Make it scrollable */
            flex-shrink: 0; /* Prevent it from shrinking too much */
        }

        .transcript-section h4 {
            color: #27ae60;
            margin-bottom: 8px;
            font-size: 14px;
            position: sticky;
            top: 0;
            background: #f8f9fa;
            z-index: 1;
            padding-bottom: 5px;
        }

        .transcript-section p {
            font-size: 13px;
            line-height: 1.4;
            color: #2c3e50;
            white-space: pre-wrap;
            margin: 0;
            padding-right: 5px; /* Space for scrollbar */
        }

        /* Custom scrollbar styling */
        .transcript-section::-webkit-scrollbar {
            width: 6px;
        }

        .transcript-section::-webkit-scrollbar-track {
            background: #e9ecef;
            border-radius: 3px;
        }

        .transcript-section::-webkit-scrollbar-thumb {
            background: #27ae60;
            border-radius: 3px;
        }

        .transcript-section::-webkit-scrollbar-thumb:hover {
            background: #219a52;
        }

        /* Make sure form content is also scrollable if needed */
        #callForm {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .form-content {
            flex: 1;
            overflow-y: auto;
        }


        /* Button Styles */
        .button-container {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            margin-top: auto;
            padding-top: 20px;
            flex-shrink: 0;
        }

        .btn {
            background: linear-gradient(45deg, #007bff, #0056b3);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 45%;
            margin-top: 15px;
            box-shadow: 0 2px 8px rgba(78, 150, 228, 0.25);
            display: inline-flex; /* For loader alignment */
            align-items: center;
            justify-content: center;
        }

        .btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 123, 255, 0.35);
        }

        .btn:disabled {
            background: #bdc3c7;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .btn-info {
            background: linear-gradient(45deg, #17a2b8, #117a8b);
            display: none;
        }

        .btn-info:hover {
            box-shadow: 0 4px 12px rgba(23, 162, 184, 0.35);
        }

        .loader-sm {
            border: 2px solid rgba(255,255,255,0.3);
            border-top: 2px solid #fff;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            animation: spin 0.8s linear infinite;
            display: none;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Status and Loading */
        .status-indicator {
            display: none;
            align-items: center;
            gap: 8px;
            margin-bottom: 15px;
            padding: 12px;
            border-radius: 8px;
            background: #e3f2fd;
            border: 1px solid #bbdefb;
            border-left: 4px solid #2196f3;
        }

        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #2196f3;
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }

        .loading {
            display: none;
            text-align: center;
            padding: 20px;
        }

        .spinner {
            border: 2px solid #f3f3f3;
            border-top: 2px solid #007bff;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
            margin: 0 auto 10px;
        }

        /* Call Details */
        .call-details {
            display: none;
        }

        .call-details.show {
            display: block;
        }

        .detail-item {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            border-bottom: 1px solid #f0f0f0;
            font-size: 14px;
        }

        .detail-item:last-child {
            border-bottom: none;
        }

        .detail-label {
            font-weight: 500;
            color: #34495e;
        }

        .detail-value {
            color: #2c3e50;
            font-weight: 600;
        }

        .transcript-section {
            background: #f8f9fa;
            padding: 12px;
            border-radius: 6px;
            margin-top: 15px;
            border-left: 3px solid #27ae60;
        }

        .transcript-section h4 {
            color: #27ae60;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .transcript-section p {
            font-size: 13px;
            line-height: 1.4;
            color: #2c3e50;
            white-space: pre-wrap;
        }

        /* AI Analysis */
        .ai-analysis {
            display: none;
        }

        .ai-analysis.show {
            display: block;
        }

        .analysis-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .analysis-item {
            background: #f8f9fa;
            padding: 12px;
            border-radius: 6px;
            border-left: 3px solid #007bff;
            border: 1px solid #e9ecef;
        }

        .analysis-item h5 {
            color: #007bff;
            margin-bottom: 4px;
            font-size: 12px;
            text-transform: uppercase;
            font-weight: 600;
        }

        .analysis-item p {
            color: #2c3e50;
            font-weight: 500;
            font-size: 14px;
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: #7f8c8d;
        }

        .empty-state .icon {
            font-size: 3em;
            margin-bottom: 15px;
            opacity: 0.5;
        }

        .empty-state p {
            font-size: 14px;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .sections-container {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 768px) {
            .sections-container {
                grid-template-columns: 1fr;
            }
            
            .container {
                padding: 10px;
            }
            
            .header h1 {
                font-size: 1.8em;
            }
        }
        .css-16tn2ye {
        position: relative;
        display: flex;
        -webkit-box-pack: justify;
        justify-content: space-between;
    }

    /* --- New, specific style for the three action buttons --- */
.call-actions-container {
    margin-top: 10px; /* Space above the buttons */
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between; /* This spreads the buttons across the card */
    gap: 15px; /* Ensures a minimum gap if the card is narrow */
}

