/* General Body Styles */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f0f4f8;
}

#app {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(to bottom right, #eff6ff, #e0e7ff);
}

/* Card Styles */
.card {
    width: 100%;
    max-width: 42rem; /* max-w-2xl */
    background-color: white;
    border-radius: 1rem; /* rounded-2xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
    border: 0;
}

.card-content {
    padding: 2rem; /* p-8 */
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* space-y-6 */
}

/* Typography */
.title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    color: #1f2937; /* text-gray-800 */
    text-align: center;
}

.subtitle {
    color: #4b5563; /* text-gray-600 */
    text-align: center;
    margin-top: -1rem;
}

/* Form Styles */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space-y-4 */
}

.form-label {
    display: block;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: #374151; /* text-gray-700 */
    margin-bottom: 0.5rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.75rem; /* rounded-xl */
    box-sizing: border-box; /* To include padding and border in the element's total width and height */
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px #3b82f6; /* ring-2 ring-blue-500 */
}


/* Button Styles */
.button-container {
    text-align: center;
}

.submit-button {
    background-color: #2563eb;
    color: white;
    font-size: 1.125rem; /* text-lg */
    padding: 0.5rem 2rem; /* px-8 py-2 */
    border-radius: 0.75rem; /* rounded-xl */
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover {
    background-color: #1d4ed8;
}

.submit-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Loader in Button */
.loader {
    width: 1.25rem; /* w-5 */
    height: 1.25rem; /* h-5 */
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Response Message */
.response-message {
    margin-top: 1.5rem;
    font-size: 0.875rem; /* text-sm */
    text-align: center;
    font-weight: 500; /* font-medium */
}

.response-message.error {
    color: #ef4444; /* text-red-500 */
}

.response-message.success {
    color: #16a34a; /* text-green-600 */
}


/* Status Display Area */
.status-container {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f9fafb; /* bg-gray-50 */
    border-radius: 0.5rem; /* rounded-lg */
}

.status-title {
    font-size: 1.125rem; /* text-lg */
    font-weight: 700; /* font-bold */
    color: #374151; /* text-gray-700 */
    margin-bottom: 0.5rem;
    text-align: center;
}

.call-status-block {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb; /* border */
    border-radius: 0.375rem; /* rounded-md */
}

.call-id {
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
    color: #4b5563; /* text-gray-600 */
}

.status-list {
    margin-top: 0.5rem;
    padding-left: 0;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* space-y-1 */
}

.status-list li {
    font-size: 0.875rem; /* text-sm */
    color: #1f2937; /* text-gray-800 */
}

.status-timestamp {
    font-family: monospace;
    font-size: 0.75rem; /* text-xs */
    background-color: #e5e7eb; /* bg-gray-200 */
    border-radius: 0.25rem; /* rounded */
    padding: 0.125rem 0.25rem;
    margin-right: 0.5rem;
} 