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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Card */
.card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Form Elements */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
}

input,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: #007bff;
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
}

.btn-sm {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: #e9ecef;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.tab:first-child {
    border-radius: 8px 0 0 8px;
}

.tab:last-child {
    border-radius: 0 8px 8px 0;
}

.tab.active {
    background: #007bff;
    color: #fff;
}

.tab:hover:not(.active) {
    background: #dee2e6;
}

/* Panels */
.panel {
    display: none;
}

.panel.active {
    display: block;
}

/* Result Messages */
.result {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    display: none;
}

.result.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.result.info {
    display: block;
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* Calls List */
.calls-list {
    margin-top: 16px;
}

.call-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.call-item__info {
    flex: 1;
}

.call-item__name {
    font-weight: 600;
    margin-bottom: 4px;
}

.call-item__participants {
    font-size: 13px;
    color: #666;
}

.call-item__actions {
    margin-left: 12px;
}

.empty-state {
    text-align: center;
    color: #666;
    padding: 20px;
}

/* Status Bar */
.status {
    font-size: 13px;
    color: #666;
    margin-top: 16px;
    text-align: center;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 540px) {
    .container {
        margin: 20px auto;
        padding: 16px;
    }

    .card {
        padding: 20px;
    }
}
