.sistema-medico-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.sistema-medico-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.sm-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.sm-tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.sm-tab-btn:hover {
    color: #333;
}

.sm-tab-btn.active {
    color: #007cba;
    border-bottom-color: #007cba;
}

.sm-tab-content {
    display: none;
}

.sm-tab-content.active {
    display: block;
}

.sm-tab-content h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

.sm-form-group {
    margin-bottom: 20px;
}

.sm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .sm-form-row {
        grid-template-columns: 1fr;
    }
}

.sm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.sm-form-group input[type="text"],
.sm-form-group input[type="email"],
.sm-form-group input[type="password"],
.sm-form-group input[type="tel"],
.sm-form-group input[type="date"],
.sm-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.sm-form-group input:focus,
.sm-form-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.sm-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.sm-checkbox-group {
    margin-top: 20px;
}

.sm-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
}

.sm-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.sm-lgpd-info {
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.sm-lgpd-info h3 {
    margin-top: 0;
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.sm-lgpd-info p {
    margin-bottom: 15px;
    color: #555;
}

.sm-lgpd-item {
    margin-bottom: 15px;
    padding: 12px;
    background: #fff;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
}

.sm-lgpd-item:last-child {
    margin-bottom: 0;
}

.sm-lgpd-item strong {
    color: #007cba;
    display: block;
    margin-bottom: 5px;
}

.required {
    color: #dc3545;
}

.sm-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

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

.sm-btn-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

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

.sm-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.sm-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.sm-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.sm-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.sm-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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